]> git.tdb.fi Git - builder.git/commitdiff
Some minor touch-up to the bootstrap script
authorMikko Rasa <tdb@tdb.fi>
Sun, 12 Mar 2023 11:30:27 +0000 (13:30 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 12 Mar 2023 11:34:55 +0000 (13:34 +0200)
bootstrap.sh

index b8c8a7aec7177f31890aea154f49cf8a48229439..b647568cb0347aa3eb1ab77193ef7581af5fc01b 100755 (executable)
@@ -67,7 +67,7 @@ while [ "$1" ]; do
 done
 
 if [ -z "$LIBPATH" -o "${LIBPATH%%/*}" ]; then
-       LIBPATH=`pwd`/${LIBPATH:-..}
+       LIBPATH="$PWD/${LIBPATH:-..}"
 fi
 
 rm -rf "$INCLUDEDIR"
@@ -101,8 +101,7 @@ for i in $REQUIRED; do
                        findargs="$findargs -mindepth 1 ( -type d ! ( $check_overlay ) -prune -false ) -o "
                fi
 
-               headers=`find $findargs -name '*.h'`
-               for j in $headers; do
+               for j in `find $findargs -name '*.h'`; do
                        rel=${j#$path/source/}
                        comp=${rel%%/*}
                        if [ "$comp" = "$rel" ]; then
@@ -137,9 +136,11 @@ for i in $sources; do
                        break
                fi
        done
+       echo "Compiling $i"
        $COMPILER -c $DEBUG $i -o $obj $flags
        objects="$objects $obj"
 done
+echo "Linking builder-stage1"
 $COMPILER $objects -o builder-stage1 $LIBS
 
 if [ "$KEEP_TEMP" != "yes" ]; then