summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorTodd C. Miller <Todd.Miller@courtesan.com>1998-01-21 05:35:53 +0000
committerTodd C. Miller <Todd.Miller@courtesan.com>1998-01-21 05:35:53 +0000
commit2fef6befcb4e89cd1470f883aa8d561483099d8c (patch)
treea1480fa0689574cf364bf8068b33154ee7974e94 /Makefile.in
parent631460b305e0e2074ba8368b0804114366ca5c82 (diff)
downloadsudo-2fef6befcb4e89cd1470f883aa8d561483099d8c.tar.gz
add rules to update version stuff in files so I don't need to do it by hand
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index 907b7571e..52b829f87 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -145,6 +145,18 @@ visudo: $(PARSEOBJS) $(VISUDOBJS) $(LIBOBJS)
testsudoers: $(PARSEOBJS) $(TESTOBJS)
$(CC) -o $@ $(PARSEOBJS) $(TESTOBJS) $(VISUDO_LDFLAGS) $(VISUDO_LIBS)
+# Update version strings based on version specified in version.h
+update_version: Makefile.in emul/utime.h check.c check.c compat.h config.h.in dce_pwent.c find_path.c getspwuid.c getwd.c goodpath.c ins_2001.h ins_classic.h ins_csops.h ins_goons.h insults.h interfaces.c lex.yy.c logging.c options.h parse.c parse.lex parse.yacc pathnames.h putenv.c strdup.c sudo-lex.yy.c sudo.c sudo.h sudo_setenv.c testsudoers.c tgetpass.c utime.c visudo.c
+ :
+
+Makefile.in : version.h
+ co -l -q $@
+ ( VERSION=`sed -n 's/static char version\[\] = "\([^"]*\)".*$$/\1/p' < version.h` ; sed -e 's/\(VERSION =\) [0-9]\.[0-9][0-9]*\.[0-9][0-9]*/\1 '$$VERSION'/' -e 's/\(CU sudo version\) [0-9]\.[0-9][0-9]*\.[0-9][0-9]*/\1 '$$VERSION'/' < $@ > $@.$$$$ ; mv -f $@.$$$$ $@ ; chmod 644 $@ )
+
+emul/utime.h check.c check.c compat.h config.h.in dce_pwent.c find_path.c getspwuid.c getwd.c goodpath.c ins_2001.h ins_classic.h ins_csops.h ins_goons.h insults.h interfaces.c lex.yy.c logging.c options.h parse.c parse.lex parse.yacc pathnames.h putenv.c strdup.c sudo-lex.yy.c sudo.c sudo.h sudo_setenv.c testsudoers.c tgetpass.c utime.c visudo.c: version.h
+ co -l -q $@
+ ( VERSION=`sed -n 's/static char version\[\] = "\([^"]*\)".*$$/\1/p' < version.h` ; sed 's/\(CU sudo version\) [0-9]\.[0-9][0-9]*\.[0-9][0-9]*/\1 '$$VERSION'/' < $@ > $@.$$$$ ; mv -f $@.$$$$ $@ ; chmod 644 $@ )
+
y.tab.c y.tab.h: parse.yacc
$(YACC) -d $(srcdir)/parse.yacc