]> granicus.if.org Git - sudo/commitdiff
kill rcs goop in update_version and fix now that version is a const
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 17 Jan 1999 22:27:01 +0000 (22:27 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 17 Jan 1999 22:27:01 +0000 (22:27 +0000)
Makefile.in

index 59817f1690ace679e55ecbfe8189c1d7544e3d31..fe56c8c83d6e7915294207157b0fdeb808c88063 100644 (file)
@@ -269,16 +269,8 @@ dist: $(DISTFILES)
 # This is ugly but it works...
 update_version:
        for f in Makefile.in $(VERSIONFILES); do \
-           if co -l -q $$f; then \
-               CHECKIN=1; \
-           else \
-               CHECKIN=0; \
-           fi; \
-           VERSION=`sed -n 's/static char version\[\] = "\([^"]*\)".*$$/\1/p' < version.h`; \
+           VERSION=`sed -n 's/static const char version\[\] = "\([^"]*\)".*$$/\1/p' < version.h`; \
            sed -e 's/\(VERSION =\) [^ ,:][^ ,:]*/\1 '$$VERSION'/' -e 's/\(CU sudo version\) [^ ,:][^ ,:]*/\1 '$$VERSION'/' < $$f > $$f.$$$$; \
            mv -f $$f.$$$$ $$f; \
            chmod 644 $$f; \
-           if [ $$CHECKIN -eq 1 ]; then \
-               ci -u -m"updated version" $$f; \
-           fi; \
        done