mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-17 05:22:31 -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
|
@ -1,7 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
# Make sure you have built RetroShare at list once from the same source tree,
|
||||
# so the support libs get ingluded in the source tarball
|
||||
|
||||
## Define default value for variable, take two arguments, $1 variable name,
|
||||
## $2 default variable value, if the variable is not already define define it
|
||||
## with default value.
|
||||
|
@ -14,11 +15,28 @@ function define_default_value()
|
|||
}
|
||||
|
||||
define_default_value GIT_DIR "${HOME}/Development/rs-develop/.git"
|
||||
define_default_value WORK_DIR "/tmp/"
|
||||
|
||||
ORIG_DIR="$(pwd)"
|
||||
|
||||
rsync -aPh --delete --exclude='.git' "${GIT_DIR}/../" RetroShare/
|
||||
[ "$(ls "${GIT_DIR}/../supportlibs/restbed/" | wc -l)" -lt "5" ] &&
|
||||
{
|
||||
cat << EOF
|
||||
WARNING: supportlibs/restbed/ seems have not been checked out!
|
||||
The produced tarball may not be suitable to build RetroShare JSON API
|
||||
EOF
|
||||
}
|
||||
|
||||
cd "${WORK_DIR}"
|
||||
rsync -a --delete \
|
||||
--exclude='.git' \
|
||||
--filter=':- build_scripts/OBS/.gitignore' \
|
||||
"${GIT_DIR}/../" RetroShare/
|
||||
git describe > RetroShare/Source_Version
|
||||
tar -zcvf RetroShare.tar.gz RetroShare/
|
||||
tar -zcf RetroShare.tar.gz RetroShare/
|
||||
|
||||
cat RetroShare/Source_Version
|
||||
md5sum RetroShare.tar.gz
|
||||
wc -c RetroShare.tar.gz
|
||||
mv RetroShare.tar.gz "${ORIG_DIR}/RetroShare.tar.gz"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue