mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-20 04:14:27 -04:00
updated packaging script
This commit is contained in:
parent
ee887e7f60
commit
1e23b97244
1 changed files with 5 additions and 3 deletions
|
@ -54,15 +54,17 @@ echo Attempting to get revision number...
|
||||||
ccount=`git rev-list --count --all`
|
ccount=`git rev-list --count --all`
|
||||||
ccount=`expr $ccount + 8613 - 8267`
|
ccount=`expr $ccount + 8613 - 8267`
|
||||||
|
|
||||||
date=`git log --pretty=format:"%ai" | head -1 | cut -d\ -f1`
|
date=`git log --pretty=format:"%ai" | head -1 | cut -d\ -f1 | sed -e s/-//g`
|
||||||
|
time=`git log --pretty=format:"%aD" | head -1 | cut -d\ -f5 | sed -e s/://g`
|
||||||
hhsh=`git log --pretty=format:"%h" | head -1`
|
hhsh=`git log --pretty=format:"%h" | head -1`
|
||||||
|
|
||||||
rev=${ccount}.${hhsh}
|
rev=${date}.${hhsh}
|
||||||
|
|
||||||
echo " "Using PGP key id : ${gpgkey}
|
echo " "Using PGP key id : ${gpgkey}
|
||||||
echo " "Using distributions: ${dist}
|
echo " "Using distributions: ${dist}
|
||||||
echo " "Commit count : ${ccount}
|
echo " "Commit count : ${ccount}
|
||||||
echo " "Date : ${date}
|
echo " "Date : ${date}
|
||||||
|
echo " "Time : ${time}
|
||||||
echo " "Hash : ${hhsh}
|
echo " "Hash : ${hhsh}
|
||||||
echo " "Using revision : ${rev}
|
echo " "Using revision : ${rev}
|
||||||
|
|
||||||
|
@ -109,7 +111,7 @@ cd ${workdir}
|
||||||
echo Setting version numbers...
|
echo Setting version numbers...
|
||||||
|
|
||||||
# setup version numbers
|
# setup version numbers
|
||||||
sed -e "s%RS_REVISION_NUMBER.*%RS_REVISION_NUMBER ${rev}%" src/libretroshare/src/retroshare/rsversion.in > src/libretroshare/src/retroshare/rsversion.h
|
sed -e "s%RS_REVISION_NUMBER.*%RS_REVISION_NUMBER 0x0${hssh}%" > src/libretroshare/src/retroshare/rsversion.h
|
||||||
|
|
||||||
# Various cleaning
|
# Various cleaning
|
||||||
echo Cleaning...
|
echo Cleaning...
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue