mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-28 14:15:19 -04:00
build_utils/get_rev_number: remove SVN references
This commit is contained in:
parent
6242210fa7
commit
712a5c17de
1 changed files with 4 additions and 10 deletions
|
|
@ -1,20 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
export LANG=C
|
||||
export LC_MESSAGES=C
|
||||
export LC_ALL=C
|
||||
|
||||
[ -z "$1" ] || cd $1
|
||||
|
||||
if [ -s $1/../REVISION ]; then
|
||||
cat ../REVISION
|
||||
|
||||
elif svn info >/dev/null 2>&1 ; then
|
||||
echo -n "svn:"
|
||||
svn info 2>&1 | grep "Last Changed Rev: " | cut -d: -f2 | tr -d ' '
|
||||
[ -z "$1" ] || cd "$1"
|
||||
|
||||
if [ -s "$1/../REVISION" ]; then
|
||||
cat "$1/../REVISION"
|
||||
elif git rev-parse > /dev/null 2>&1 ; then
|
||||
echo -n "git:"
|
||||
git rev-parse --short HEAD
|
||||
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue