diff options
author | Kyle McMartin <kyle@redhat.com> | 2013-07-18 20:10:36 -0400 |
---|---|---|
committer | Kyle McMartin <kyle@redhat.com> | 2013-07-18 20:14:24 -0400 |
commit | 5fda1eb42cbb985db5482c64e34029746fba8ffb (patch) | |
tree | cb69a8f7576ca2418acf223d677bd4c8b7254276 | |
parent | 57716bc905d0488d80708b172b9425cf6b8f682b (diff) | |
download | kernel-5fda1eb42cbb985db5482c64e34029746fba8ffb.tar.gz kernel-5fda1eb42cbb985db5482c64e34029746fba8ffb.tar.xz kernel-5fda1eb42cbb985db5482c64e34029746fba8ffb.zip |
generate-git-snapshot.sh: warn if $LINUX_GIT dir is unset
-rwxr-xr-x | scripts/generate-git-snapshot.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/generate-git-snapshot.sh b/scripts/generate-git-snapshot.sh index 239b846c9..b6fe0d6c1 100755 --- a/scripts/generate-git-snapshot.sh +++ b/scripts/generate-git-snapshot.sh @@ -2,6 +2,8 @@ # # Set LINUX_GIT to point to an upstream Linux git tree in your .bashrc or wherever. +[ ! -d "$LINUX_GIT" ] && echo "error: set \$LINUX_GIT to point at upstream git tree" && exit 1 + VER=$(grep patch sources | head -n1 | awk '{ print $2 }' | sed s/patch-// | sed s/-git.*// | sed s/.xz//) OLDGIT=$(grep gitrev kernel.spec | head -n1 | sed s/%define\ gitrev\ //) |