Replace sinfg with synfig where nessecary in a case-preserving way
[synfig.git] / synfig-core / trunk / bootstrap
index 71826a5..eedaaea 100755 (executable)
@@ -1,6 +1,6 @@
 #! /bin/sh
 #
-# Sinfg Bootstrap Script
+# Synfig Bootstrap Script
 # $Id: bootstrap,v 1.2 2005/01/10 07:40:26 darco Exp $
 # 
 # This script creates the configure script and Makefile.in files,
@@ -9,13 +9,17 @@
 #
 
 # 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="$(pwd)/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"`"
 # Automake,Autoconf, and Libtool versions that we require
 #AUTOCONF_VERSION=2.5
 #AUTOMAKE_VERSION=1.6
@@ -33,6 +37,7 @@ 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;
@@ -243,7 +248,7 @@ false && {
 # 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