summaryrefslogtreecommitdiffstats
path: root/abs/extra/usbmuxd/usbmuxd-describe.patch
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2012-04-07 22:54:18 (GMT)
committerBritney Fransen <brfransen@gmail.com>2012-04-07 22:54:18 (GMT)
commitdd8c8322c76e6671f17c512de1ca9abb305f70f0 (patch)
tree92be982df673d0724a757eb8318022db8f079259 /abs/extra/usbmuxd/usbmuxd-describe.patch
parent0c444b6185e3e5c3a8039d6a938e1bd7a654c63f (diff)
downloadlinhes_pkgbuild-dd8c8322c76e6671f17c512de1ca9abb305f70f0.zip
linhes_pkgbuild-dd8c8322c76e6671f17c512de1ca9abb305f70f0.tar.gz
linhes_pkgbuild-dd8c8322c76e6671f17c512de1ca9abb305f70f0.tar.bz2
usbmuxd: fix version number detection
Diffstat (limited to 'abs/extra/usbmuxd/usbmuxd-describe.patch')
-rw-r--r--abs/extra/usbmuxd/usbmuxd-describe.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/abs/extra/usbmuxd/usbmuxd-describe.patch b/abs/extra/usbmuxd/usbmuxd-describe.patch
new file mode 100644
index 0000000..3023235
--- /dev/null
+++ b/abs/extra/usbmuxd/usbmuxd-describe.patch
@@ -0,0 +1,20 @@
+--- usbmuxd-1.0.7/Modules/describe.sh.orig 2012-04-07 22:37:03.218203610 +0000
++++ usbmuxd-1.0.7/Modules/describe.sh 2012-04-07 22:37:22.979010437 +0000
+@@ -1,17 +1,8 @@
+ #!/bin/bash
+
+-# Check for git and a git repo.
+-if head=`git rev-parse --verify HEAD 2>/dev/null`; then
+- /bin/echo -n `git describe`
+-
+- # Are there uncommitted changes?
+- git update-index --refresh --unmerged > /dev/null
+- git diff-index --quiet HEAD || /bin/echo -n -dirty
+-else
+ # Check for version tag
+ if [ -e version.tag ]; then
+ /bin/echo -n `cat version.tag`
+ fi
+-fi
+
+ echo