diff options
| author | Cory Fields <[email protected]> | 2013-05-27 19:55:01 -0400 |
|---|---|---|
| committer | Cory Fields <[email protected]> | 2013-09-05 21:31:03 -0400 |
| commit | 35b8af92265ed74de63c3818e5290c27b3f35df2 (patch) | |
| tree | 7cd074e2ba31ca9346d69922e312ebd3e7298711 /share/genbuild.sh | |
| parent | Merge pull request #2944 from gavinandresen/acceptheader (diff) | |
| download | discoin-35b8af92265ed74de63c3818e5290c27b3f35df2.tar.xz discoin-35b8af92265ed74de63c3818e5290c27b3f35df2.zip | |
autotools: switch to autotools buildsystem
Diffstat (limited to 'share/genbuild.sh')
| -rwxr-xr-x | share/genbuild.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/share/genbuild.sh b/share/genbuild.sh index d959877dc..da50b0d10 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 |