aboutsummaryrefslogtreecommitdiff
path: root/share/genbuild.sh
diff options
context:
space:
mode:
authorCory Fields <theuni-nospam-@xbmc.org>2013-05-27 19:55:01 -0400
committerCory Fields <theuni-nospam-@xbmc.org>2013-09-05 21:31:03 -0400
commit35b8af92265ed74de63c3818e5290c27b3f35df2 (patch)
tree7cd074e2ba31ca9346d69922e312ebd3e7298711 /share/genbuild.sh
parent2fee100f036626866e5dca3f27b7562da25e43f3 (diff)
downloadbitcoin-35b8af92265ed74de63c3818e5290c27b3f35df2.tar.xz
autotools: switch to autotools buildsystem
Diffstat (limited to 'share/genbuild.sh')
-rwxr-xr-xshare/genbuild.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/share/genbuild.sh b/share/genbuild.sh
index d959877dc8..da50b0d109 100755
--- a/share/genbuild.sh
+++ b/share/genbuild.sh
@@ -1,5 +1,7 @@
#!/bin/sh
-
+if [ $# -gt 1 ]; then
+ cd "$2"
+fi
if [ $# -gt 0 ]; then
FILE="$1"
shift
@@ -7,11 +9,11 @@ if [ $# -gt 0 ]; then
INFO="$(head -n 1 "$FILE")"
fi
else
- echo "Usage: $0 <filename>"
+ echo "Usage: $0 <filename> <srcroot>"
exit 1
fi
-if [ -e "$(which git)" ]; then
+if [ -e "$(which git)" -a -d ".git" ]; then
# clean 'dirty' status of touched files that haven't been modified
git diff >/dev/null 2>/dev/null