From: cypherpunks Date: Thu, 12 Mar 2015 08:28:41 +0000 (+0100) Subject: Revive updateVersions.pl with `make update-versions`. X-Git-Tag: tor-0.2.7.1-alpha~119^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e85ba7459e6270b5ec1186a18e87a60c13153344;p=thirdparty%2Ftor.git Revive updateVersions.pl with `make update-versions`. --- diff --git a/Makefile.am b/Makefile.am index 4527dd1244..1c2d2c1909 100644 --- a/Makefile.am +++ b/Makefile.am @@ -122,6 +122,10 @@ check-changes: $(PYTHON) $(top_srcdir)/scripts/maint/lintChanges.py $(top_srcdir)/changes/*; \ fi +.PHONY: update-versions +update-versions: + $(PERL) $(top_builddir)/scripts/maint/updateVersions.pl + version: @echo "Tor @VERSION@" @if test -d "$(top_srcdir)/.git" && test -x "`which git 2>&1;true`"; then \ diff --git a/configure.ac b/configure.ac index 3ba686802a..4905e69cb5 100644 --- a/configure.ac +++ b/configure.ac @@ -1664,6 +1664,7 @@ AC_CONFIG_FILES([ src/config/torrc.sample src/config/torrc.minimal scripts/maint/checkOptionDocs.pl + scripts/maint/updateVersions.pl ]) if test x$asciidoc = xtrue && test "$ASCIIDOC" = "none" ; then diff --git a/scripts/maint/updateVersions.pl b/scripts/maint/updateVersions.pl.in similarity index 87% rename from scripts/maint/updateVersions.pl rename to scripts/maint/updateVersions.pl.in index 15c83b80a7..65c51a1f2d 100755 --- a/scripts/maint/updateVersions.pl +++ b/scripts/maint/updateVersions.pl.in @@ -1,8 +1,8 @@ #!/usr/bin/perl -w -$CONFIGURE_IN = './configure.ac'; -$ORCONFIG_H = './src/win32/orconfig.h'; -$TOR_NSI = './contrib/win32build/tor-mingw.nsi.in'; +$CONFIGURE_IN = '@abs_top_srcdir@/configure.ac'; +$ORCONFIG_H = '@abs_top_srcdir@/src/win32/orconfig.h'; +$TOR_NSI = '@abs_top_srcdir@/contrib/win32build/tor-mingw.nsi.in'; $quiet = 1;