From 35b8af92265ed74de63c3818e5290c27b3f35df2 Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Mon, 27 May 2013 19:55:01 -0400 Subject: autotools: switch to autotools buildsystem --- share/genbuild.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'share/genbuild.sh') 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 " + echo "Usage: $0 " 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 -- cgit v1.2.3