From: <pk...@us...> - 2007-08-28 20:37:46
|
Revision: 930 http://conky.svn.sourceforge.net/conky/?rev=930&view=rev Author: pkovacs Date: 2007-08-28 13:37:42 -0700 (Tue, 28 Aug 2007) Log Message: ----------- autogen.sh improvements Modified Paths: -------------- trunk/conky1/autogen.sh Modified: trunk/conky1/autogen.sh =================================================================== --- trunk/conky1/autogen.sh 2007-08-28 20:27:45 UTC (rev 929) +++ trunk/conky1/autogen.sh 2007-08-28 20:37:42 UTC (rev 930) @@ -2,7 +2,8 @@ # $Id$ # autogen.sh -# optional $1 = full path to svn working copy or "clean" +# +# optional $1 = optional directory containing build tree or svn working copy export AUTOCONF=${AUTOCONF:-autoconf} export AUTOMAKE=${AUTOMAKE:-automake} @@ -10,15 +11,16 @@ export AUTOHEADER=${AUTOHEADER:-autoheader} export LIBTOOLIZE=${LIBTOOLIZE:-libtoolize} -if [ "$1" = "clean" ]; then - /bin/rm -f configure.ac - exit 0 -fi +# identify svn revision, if an svn working copy +if test "$1" != "" && test -d "$1/.svn"; then + revision=`LC_ALL=C svn info $1 | awk '/^Revision: / {printf "%05d\n", $2}'`; +elif test -d ".svn"; then + revision=`LC_ALL=C svn info | awk '/^Revision: / {printf "%05d\n", $2}'`; +else + revision="NONE"; fi -# substitute svn revision -revision=`LC_ALL=C svn info $1 | awk '/^Revision: / {printf "%05d\n", $2}'` -sed -e "s/@REVISION@/${revision}/g" \ - < "configure.ac.in" > "configure.ac" +# generate configure.ac with substituted svn revision +sed -e "s/@REVISION@/${revision}/g" < "configure.ac.in" > "configure.ac" echo Running $ACLOCAL -I m4 ... && $ACLOCAL -I m4 echo Running $LIBTOOLIZE --force --copy ... && $LIBTOOLIZE --force --copy This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |