aports/testing/iw/iw-git-version.patch
Natanael Copa 76ec47a71a testing/iw: new aport
nl80211 based CLI configuration utility for wireless devices
http://wireless.kernel.org/en/users/Documentation/iw
2010-07-27 09:38:56 +00:00

12 lines
299 B
Diff

--- ./version.sh.orig
+++ ./version.sh
@@ -5,7 +5,7 @@
echo '#include "iw.h"' > "$OUT"
-if head=`git rev-parse --verify HEAD 2>/dev/null`; then
+if [ -d .git ] && head=`git rev-parse --verify HEAD 2>/dev/null`; then
git update-index --refresh --unmerged > /dev/null
descr=$(git describe)