mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 06:34:36 +08:00
23 lines
601 B
Diff
23 lines
601 B
Diff
--- usbmuxd-1.0.4/Modules/describe.sh.orig 2010-07-11 01:38:29.642866097 +0000
|
|
+++ usbmuxd-1.0.4/Modules/describe.sh 2010-07-11 01:35:34.972896129 +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
|
|
- echo -n `git describe`
|
|
-
|
|
- # Are there uncommitted changes?
|
|
- git update-index --refresh --unmerged > /dev/null
|
|
- git diff-index --quiet HEAD || echo -n -dirty
|
|
-else
|
|
# Check for version tag
|
|
- if [ -e version.tag ]; then
|
|
- echo -n `cat version.tag`
|
|
- fi
|
|
+if [ -e version.tag ]; then
|
|
+ echo -n `cat version.tag`
|
|
fi
|
|
|
|
echo
|