From: pabs Date: Mon, 14 Aug 2006 08:23:28 +0000 (+0000) Subject: Allow synfigstudio to bootstrap in directories with spaces in their names X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=c1292e1cb01aa4282325a3adee8cb25ef78b6435;p=synfig.git Allow synfigstudio to bootstrap in directories with spaces in their names git-svn-id: http://svn.voria.com/code@218 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/bootstrap b/synfig-studio/trunk/bootstrap index f3fe2d7..3be6501 100755 --- a/synfig-studio/trunk/bootstrap +++ b/synfig-studio/trunk/bootstrap @@ -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; @@ -142,7 +142,7 @@ 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.spec... @@ -153,7 +153,7 @@ 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... @@ -164,7 +164,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 && @@ -250,4 +250,4 @@ echo $BOOTSTRAP_NAME: Complete. cleanup; # Move back to the current directory -cd $CURR_DIR +cd "$CURR_DIR"