projects/aports·blob master · refs

27 lines · 724 B

1diff --git a/version.sh b/version.sh
2index 40e8d05..be8cd2e 100755
3--- a/version.sh
4+++ b/version.sh
5@@ -17,17 +17,10 @@
6 # Note that the RELEASE-VERSION file should *not* be checked into git;
7 # please add it to your top-level .gitignore file.
8
9-version=$(git describe)
10-if [ -n ${version} ]; then
11- # If we got something from git-describe, write the version to the
12- # output file.
13- echo ${version} > RELEASE-VERSION
14-else
15- version=$(cat RELEASE-VERSION)
16- if [ -z ${version} ]; then
17- echo "Cannot find the version number!" >&2
18- exit 1
19- fi
20+version=$(cat RELEASE-VERSION)
21+if [ -z ${version} ]; then
22+ echo "Cannot find the version number!" >&2
23+ exit 1
24 fi
25
26 echo ${version}
27