Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix HEAD ref lookups, and compatibility for non-bash shells.

  • Loading branch information...
commit 987e39e16c89c33f163f8f2d85cc28f67738d67d 1 parent 9ae145d
@jimwise jimwise authored
Showing with 5 additions and 5 deletions.
  1. +1 −1  generate-version.sh
  2. +4 −4 make-config.sh
View
2  generate-version.sh
@@ -26,7 +26,7 @@ generate_version() {
fi
# Build it.
version_head=`git rev-parse HEAD`
- if `cat .git/HEAD` | grep -q "ref: refs/heads/.*" > /dev/null 2>&1
+ if grep -q "ref: refs/heads/.*" .git/HEAD > /dev/null 2>&1
then
version_branchname=`cut -d / -f 3- < .git/HEAD`
else
View
8 make-config.sh
@@ -191,10 +191,10 @@ generate_version
# dependencies, write them out to a file to be sourced by other
# scripts.
-echo "export DEVNULL=\"$DEVNULL\"" > output/build-config
-echo "export GNUMAKE=\"$GNUMAKE\"" >> output/build-config
-echo "export SBCL_XC_HOST=\"$SBCL_XC_HOST\"" >> output/build-config
-echo "export legacy_xc_spec=\"$legacy_xc_spec\"" >> output/build-config
+echo "DEVNULL=\"$DEVNULL\"; export DEVNULL" > output/build-config
+echo "GNUMAKE=\"$GNUMAKE\"; export GNUMAKE" >> output/build-config
+echo "SBCL_XC_HOST=\"$SBCL_XC_HOST\"; export SBCL_XC_HOST" >> output/build-config
+echo "legacy_xc_spec=\"$legacy_xc_spec\"; export legacy_xc_spec" >> output/build-config
# And now, sorting out the per-target dependencies...
Please sign in to comment.
Something went wrong with that request. Please try again.