X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=ETL%2Ftrunk%2Fbootstrap;h=461491ecd8f80a9b7f33a5b0c1db7eec148b9140;hb=2dd185d5a236d7d610fc9c4fda81011ce5e9386b;hp=bba9c4a2ddd13a8cbc6405f3e571d30307071721;hpb=aefba09c3c4e8f1165663162c77a030dc5b7af56;p=synfig.git diff --git a/ETL/trunk/bootstrap b/ETL/trunk/bootstrap index bba9c4a..461491e 100755 --- a/ETL/trunk/bootstrap +++ b/ETL/trunk/bootstrap @@ -9,14 +9,20 @@ # # Grab the current directory and move to our own -CURR_DIR=$(pwd) -cd $(dirname $0) +CURR_DIR="$(pwd)" +cd "$(dirname $0)" # Environment Variables -BOOTSTRAP_NAME=$(basename $0) -CONFIG_DIR=$(pwd)/config +BOOTSTRAP_NAME="$(basename $0)" -. $CONFIG_DIR/build.cfg +CONFIG_DIR="config" + +[ -x /bin/cygpath ] && CONFIG_DIR="`cygpath -m -s "$CONFIG_DIR"`" +[ -x /bin/cygpath ] && CONFIG_DIR="`cygpath -u "$CONFIG_DIR"`" +[ -x /bin/cygpath ] && CURR_DIR="`cygpath -m -s "$CURR_DIR"`" +[ -x /bin/cygpath ] && CURR_DIR="`cygpath -u "$CURR_DIR"`" + +. "$CONFIG_DIR/build.cfg" SED_SCRIPT=" s/@PACKAGE@/$PACKAGE/g; @@ -29,6 +35,7 @@ s/@VERSION_MAJ@/$VERSION_MAJ/g; s/@VERSION_MIN@/$VERSION_MIN/g; s/@VERSION_REV@/$VERSION_REV/g; s/@VERSION_REL@/$VERSION_REL/g; +s'@SVN_REPOSITORY@'$SVN_REPOSITORY'g; s/@CFLAGS@//g; " @@ -109,21 +116,21 @@ $BOOTSTRAP_NAME: warning: *** Bootstrap process may fail!" for FILENAME in doxygen.cfg pkgconfig.pc 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 pkgconfig.pc to $PACKAGE_TARNAME.pc.in... mv pkgconfig.pc "$PACKAGE_TARNAME.pc.in" -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... @@ -132,7 +139,7 @@ set -x # Create all of the build environment files ( - aclocal -I $CONFIG_DIR $ACLOCAL_FLAGS && + aclocal -I "$CONFIG_DIR" $ACLOCAL_FLAGS && autoheader && autoconf -o configure && automake --foreign --add-missing --copy --include-deps @@ -206,4 +213,4 @@ echo $BOOTSTRAP_NAME: Complete. cleanup; # Move back to the current directory -cd $CURR_DIR +cd "$CURR_DIR"