# HG changeset patch # User Akos Ladanyi # Date 1266428539 0 # Node ID f7a4e802495290bd0abc0317b3fedba6cd6e4520 # Parent eda742a0b1b446d7e44fe397628bbde4bdeca987 Put all version numbers in config.sh for easier changing diff -r eda742a0b1b4 -r f7a4e8024952 Makefile.in --- a/Makefile.in Mon Feb 15 10:21:17 2010 +0100 +++ b/Makefile.in Wed Feb 17 17:42:19 2010 +0000 @@ -1,3 +1,5 @@ +LIBSTDCXX_VERSION = @LIBSTDCXX_VERSION@ + EPS_IMAGES18 = EPS_IMAGES = \ @@ -36,7 +38,7 @@ -rm -rf $(DEMOS) update-external-tags: - wget -O libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-html-USERS-4.3/libstdc++.tag && \ + wget -O libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-html-USERS-$(LIBSTDCXX_VERSION)/libstdc++.tag && \ mv libstdc++.tag.tmp libstdc++.tag || \ rm libstdc++.tag.tmp wget -O lemon.tag.tmp @make_lemon_doc_prefix@/lemon.tag && \ diff -r eda742a0b1b4 -r f7a4e8024952 config.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config.sh Wed Feb 17 17:42:19 2010 +0000 @@ -0,0 +1,2 @@ +LEMON_VERSION='1.1.1' +LIBSTDCXX_VERSION='4.3' diff -r eda742a0b1b4 -r f7a4e8024952 configure --- a/configure Mon Feb 15 10:21:17 2010 +0100 +++ b/configure Wed Feb 17 17:42:19 2010 +0000 @@ -1,5 +1,7 @@ #!/bin/bash +source config.sh + quiet=0 function quiet { [[ $quiet == 1 ]]; } @@ -32,7 +34,7 @@ Options: -h, --help display this help and exit --lemon-doc-prefix=loc The location of the lemon doc. By default it is - http://lemon.cs.elte.hu/pub/doc/1.1.1 + http://lemon.cs.elte.hu/pub/doc/$LEMON_VERSION Expamle: $0 --lemon-doc-prefix=file://usr/local/share/doc/lemon/docs/ @@ -54,7 +56,7 @@ if test -z "$lemon_doc_prefix" then - lemon_doc_prefix='http://lemon.cs.elte.hu/pub/doc/1.1.1' + lemon_doc_prefix="http://lemon.cs.elte.hu/pub/doc/$LEMON_VERSION" fi lemon_doc_prefix=$(echo $lemon_doc_prefix|sed 's/\//\\\\\\\//g') @@ -64,5 +66,6 @@ sed -e "s/@lemon_cflags@/${lemon_cflags}/g" \ -e "s/@lemon_libs@/${lemon_libs}/g" \ - -e "s/@make_lemon_doc_prefix@/${lemon_doc_prefix}/g" \ + -e "s/@make_lemon_doc_prefix@/${lemon_doc_prefix}/g" \ + -e "s/@LIBSTDCXX_VERSION@/${LIBSTDCXX_VERSION}/g" \ < Makefile.in > Makefile