Skip to content

Commit

Permalink
Update pkg-version script to work with submodules
Browse files Browse the repository at this point in the history
While using git-submodules the directory .git will not exist. Instead of that,
a file .git will be present.
Update it to cover this scenario.

Signed-off-by: Aline Manera <[email protected]>
  • Loading branch information
alinefm authored and danielhb committed Feb 25, 2016
1 parent 0b6ddd2 commit a9bb201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-aux/pkg-version
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ AWK_RELEASE='
else if (NF == 4) print $2, $3, "git" substr($4, 2)
}'

if [ ! -d .git ]; then
if [ ! -e .git ]; then
PKG_VERSION=`cat VERSION`
else
PKG_VERSION=`git describe --tags --match "[0-9]*" || cat VERSION`
Expand Down

0 comments on commit a9bb201

Please sign in to comment.