X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fbootstrap;h=efbf89c7727e575703118950d09b1c646d8f653c;hb=88a964cff54a732fd42f3a479122a0b1894c8852;hp=fe60751c1980c6a38b781ae60e6b2c9a11bafbe1;hpb=3a3c4bca3a17137bec5d7960560934b91ef4146e;p=synfig.git diff --git a/synfig-studio/trunk/bootstrap b/synfig-studio/trunk/bootstrap index fe60751..efbf89c 100755 --- a/synfig-studio/trunk/bootstrap +++ b/synfig-studio/trunk/bootstrap @@ -1,7 +1,7 @@ #! /bin/sh # -# Sinfg Studio Bootstrap Script -# $Id: bootstrap,v 1.2 2005/01/10 08:13:44 darco Exp $ +# Synfig Studio Bootstrap Script +# $Id$ # # This script creates the configure script and Makefile.in files, # and also fixes a few things in both to ensure a smooth build @@ -14,9 +14,9 @@ cd $(dirname $0) # Environment Variables BOOTSTRAP_NAME=$(basename $0) -CONFIG_DIR=$(pwd)/config +CONFIG_DIR="config" -. $CONFIG_DIR/build.cfg +. "$CONFIG_DIR/build.cfg" SED_SCRIPT=" s/@PACKAGE@/$PACKAGE/g; @@ -24,7 +24,9 @@ s/@PACKAGE_NAME@/$PACKAGE_NAME/g; s/@PACKAGE_BUGREPORT@/$PACKAGE_BUGREPORT/g; s/@PACKAGE_TARNAME@/$PACKAGE_TARNAME/g; s/@PACKAGE_VERSION@/$PACKAGE_VERSION/g; +s|@SVN_REPOSITORY@|$SVN_REPOSITORY|g; s/@VERSION@/$VERSION/g; +s/@API_VERSION@/$API_VERSION/g; s/@VERSION_MAJ@/$VERSION_MAJ/g; s/@VERSION_MIN@/$VERSION_MIN/g; s/@VERSION_REV@/$VERSION_REV/g; @@ -57,11 +59,11 @@ cleanup () { rm -fr config.cache autom4te*.cache configure.in $TEMPFILE } -output Prepairing build environment for $PACKAGE-$VERSION... +output Preparing build environment for $PACKAGE-$VERSION... # Look for the CVS directory. If we don't find it, we need to # ask the user if they know what they are doing. -test -d CVS || +( test -d CVS || test -d .svn ) || { echo " $BOOTSTRAP_NAME: warning: This shell script is intended for those @@ -141,18 +143,18 @@ mv $TEMPFILE aclocal.m4 for FILENAME in project.spec ; do { output Creating $FILENAME... -sed "$SED_SCRIPT" < $CONFIG_DIR/$FILENAME.in > $FILENAME; +sed "$SED_SCRIPT" < "$CONFIG_DIR/$FILENAME.in" > "$FILENAME"; } ; done -output Renaming project.spec to $PACKAGE-$VERSION.spec... -mv project.spec "$PACKAGE-$VERSION.spec" +output Renaming project.spec to $PACKAGE.spec... +mv project.spec "$PACKAGE.spec" -output Finishing up $PACKAGE-$VERSION.spec... -echo %changelog >> "$PACKAGE-$VERSION.spec" -cat ChangeLog >> "$PACKAGE-$VERSION.spec" +output Finishing up $PACKAGE.spec... +echo %changelog >> "$PACKAGE.spec" +cat NEWS >> "$PACKAGE.spec" output Creating configure.in from configure.ac... -sed "$SED_SCRIPT" < $CONFIG_DIR/configure.ac > configure.in; +sed "$SED_SCRIPT" < "$CONFIG_DIR/configure.ac" > configure.in; output Setting up build environment... @@ -163,7 +165,7 @@ set -x ( # $INTLTOOLIZE -c && $LIBTOOLIZE -c -f && - $ACLOCAL -I $CONFIG_DIR $ACLOCAL_FLAGS && + $ACLOCAL -I "$CONFIG_DIR" $ACLOCAL_FLAGS && aclocalfix && $AUTOHEADER && $AUTOMAKE --foreign --add-missing --copy --include-deps && @@ -185,7 +187,7 @@ set +x #sed " #s/g++ c++/g++3 g++ c++/; #s/gcc cc/gcc3 gcc cc/; -#s:"'${prefix}/include'":"'${prefix}/include/sinfg'":; +#s:"'${prefix}/include'":"'${prefix}/include/synfig'":; #s:PREFIX/include:PREFIX/include/ETL:; #" < configure > $TEMPFILE #cp $TEMPFILE configure @@ -230,6 +232,18 @@ distcheck: dist: ./configure --enable-maintainer-mode make dist + +TAG=${PACKAGE_TARNAME}_${VERSION_MAJ}_${VERSION_MIN}_${VERSION_REV} + +tagstable: + -svn delete $SVN_REPOSITORY/tags/stable -m \"Stabe Tag: Removing old tag\" + svn mkdir $SVN_REPOSITORY/tags/stable -m \"Stable Tag: Creating new directory\" + svn copy . $SVN_REPOSITORY/tags/stable -m \"Stable Tag: Copying everyhting over\" + +tagrelease: + svn mkdir $SVN_REPOSITORY/tags/\$(TAG) -m \"Release Tag: Making directory\" + svn copy . $SVN_REPOSITORY/tags/\$(TAG) -m \"Release \$(TAG)\" + " ) > Makefile echo $BOOTSTRAP_NAME: Complete. @@ -237,4 +251,4 @@ echo $BOOTSTRAP_NAME: Complete. cleanup; # Move back to the current directory -cd $CURR_DIR +cd "$CURR_DIR"