mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-13 03:22:34 -04:00
Update open build service recipes
This commit is contained in:
parent
a96310d45e
commit
3f2a1d52c2
66 changed files with 5111 additions and 70 deletions
|
@ -0,0 +1,28 @@
|
|||
#!/bin/bash
|
||||
|
||||
NAME=sqlcipher
|
||||
# this is a huge hunk of stuff, so reuse the local repo if possible
|
||||
if [ -d ${NAME}/.git ]; then
|
||||
cd ${NAME}
|
||||
git pull
|
||||
cd ..
|
||||
else
|
||||
set -e
|
||||
git clone https://github.com/sqlcipher/sqlcipher.git
|
||||
set +e
|
||||
fi
|
||||
|
||||
TOPDIR=$(pwd)
|
||||
cd ${NAME}
|
||||
TAG=$(git tag -l | tail -n 1)
|
||||
LINE=$(git show --format=format:"%h %ai"|head -n 1)
|
||||
set -- $LINE
|
||||
REV=$1
|
||||
DATE=$2
|
||||
VER=${DATE//-/.}
|
||||
set -e
|
||||
git archive --prefix=${NAME}-${TAG#v}/ -o $TOPDIR/${NAME}-${TAG#v}.tar ${TAG}
|
||||
cd $TOPDIR
|
||||
bzip2 -9 ${NAME}-${TAG#v}.tar
|
||||
sed -i "s/^Version:.*/Version: ${TAG#v}/" ${NAME}.spec
|
||||
osc vc -m "Update to $REV ($DATE)"
|
Loading…
Add table
Add a link
Reference in a new issue