mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Add script to prepare OBS source tarball
This commit is contained in:
parent
04db4b0f24
commit
b46fb73f20
24
build_scripts/prepare_OBS_source_tarbal.sh
Executable file
24
build_scripts/prepare_OBS_source_tarbal.sh
Executable file
@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
## 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.
|
||||
function define_default_value()
|
||||
{
|
||||
VAR_NAME="${1}"
|
||||
DEFAULT_VALUE="${2}"
|
||||
|
||||
[ -z "${!VAR_NAME}" ] && export ${VAR_NAME}="${DEFAULT_VALUE}"
|
||||
}
|
||||
|
||||
define_default_value GIT_DIR "${HOME}/Development/rs-develop/.git"
|
||||
|
||||
|
||||
rsync -aPh --delete --exclude='.git' "${GIT_DIR}/../" RetroShare/
|
||||
git describe > RetroShare/Source_Version
|
||||
tar -zcvf RetroShare.tar.gz RetroShare/
|
||||
cat RetroShare/Source_Version
|
||||
md5sum RetroShare.tar.gz
|
||||
wc -c RetroShare.tar.gz
|
Loading…
Reference in New Issue
Block a user