Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Dnsmasq
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Dnsmasq
Commits
16f03e71
Commit
16f03e71
authored
Mar 06, 2017
by
Bert Gijsbers
Committed by
Simon Kelley
Mar 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for failure of "git describe" in get-version.
parent
dc99058d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
bld/get-version
bld/get-version
+10
-3
No files found.
bld/get-version
View file @
16f03e71
...
...
@@ -11,11 +11,18 @@
# If there is more than one v[0-9].* tag, sort them and use the
# first. This favours, eg v2.63 over 2.63rc6.
# Change directory to the toplevel source directory.
if
test
-z
"
$1
"
||
!
test
-d
"
$1
"
||
!
cd
"
$1
"
;
then
echo
"
$0
: First argument
$1
must be toplevel dir."
>
&2
exit
1
fi
if
which git
>
/dev/null 2>&1
&&
\
([
-d
$1
/.git
]
||
grep
'^gitdir:'
$1
/.git
>
/dev/null 2>&1
)
;
then
cd
$1
;
git describe |
sed
's/^v//'
([
-d
.git
]
||
grep
'^gitdir:'
.git
>
/dev/null 2>&1
)
&&
\
git describe
>
/dev/null 2>&1
;
then
git describe |
sed
's/^v//'
elif
grep
'\$Format:%d\$'
$1
/VERSION
>
/dev/null 2>&1
;
then
# unsubstituted VERSION, but no git available.
# unsubstituted VERSION, but no git available.
echo
UNKNOWN
else
vers
=
`
cat
$1
/VERSION |
sed
's/[(), ]/,/ g'
|
tr
','
'\n'
|
grep
^v[0-9]
`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment