Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Sunxi Tools
Commits
a191b8c5
Commit
a191b8c5
authored
Nov 03, 2016
by
Bernhard Nortmann
Browse files
appveyor: Use short commit ID in version information
Signed-off-by:
Bernhard Nortmann
<
bernhard.nortmann@web.de
>
parent
c0f8abd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
autoversion.sh
View file @
a191b8c5
...
...
@@ -10,7 +10,13 @@ if VER=`git describe --tags --dirty --always`; then
echo
"Setting version information:
${
VER
}
"
>
&2
else
VER
=
${
LATEST_RELEASE
}
echo
"Unable to determine current version (using
\"
${
VER
}
\"
as fallback)"
>
&2
# try to add short commit ID on AppVeyor
if
[
-n
${
APPVEYOR_REPO_COMMIT
}
]
;
then
VER
=
"
${
VER
}
`
echo
${
APPVEYOR_REPO_COMMIT
}
|
cut
-c
1-7
`
"
echo
"Deriving version from commit ID:
${
VER
}
"
>
&2
else
echo
"Unable to determine current version (using
\"
${
VER
}
\"
as fallback)"
>
&2
fi
fi
echo
>
&2
...
...
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