Skip to content

Commit

Permalink
Fix HEAD ref lookups, and compatibility for non-bash shells.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimwise committed Oct 24, 2011
1 parent 9ae145d commit 987e39e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion generate-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions make-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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...

Expand Down

0 comments on commit 987e39e

Please sign in to comment.