mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 22:25:04 -04:00
improved version_detail sript
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1529 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
ab07042510
commit
f95755641e
2 changed files with 59 additions and 0 deletions
|
@ -1,5 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
#don't exit even if a command fails
|
||||
set +e
|
||||
|
||||
|
||||
if ( git log -n 1 &> /dev/null); then
|
||||
#retrieve git information
|
||||
version="git : $(git status | grep branch | cut -c 13-) $(git log -n 1 | grep commit | cut -c 8-)"
|
||||
|
@ -21,3 +25,5 @@ if [[ $version != '' ]]; then
|
|||
echo "Writing version to util/rsversion.h : $version "
|
||||
sed -i "s/LIB_VERSION .*/LIB_VERSION \"$version\"/g" util/rsversion.h
|
||||
fi
|
||||
echo "script version_detail.sh finished normally"
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue