mirror of
https://github.com/Qortal/qortal.git
synced 2025-02-11 17:55:50 +00:00
Update tools/build-zip.sh to reflect updated start.sh, and also to take optional git tag
This commit is contained in:
parent
8b0b1db5a4
commit
f833e44bd5
@ -2,6 +2,12 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
# Optional git tag?
|
||||||
|
if [ $# -ge 1 ]; then
|
||||||
|
git_tag="$1"
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
saved_pwd=$PWD
|
saved_pwd=$PWD
|
||||||
|
|
||||||
# Check we are within a git repo
|
# Check we are within a git repo
|
||||||
@ -31,10 +37,12 @@ if [ -z "${project}" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Extract git tag
|
# Extract git tag
|
||||||
git_tag=$( git tag --points-at HEAD )
|
|
||||||
if [ -z "${git_tag}" ]; then
|
if [ -z "${git_tag}" ]; then
|
||||||
echo "Unable to extract git tag"
|
git_tag=$( git tag --points-at HEAD )
|
||||||
exit 1
|
if [ -z "${git_tag}" ]; then
|
||||||
|
echo "Unable to extract git tag"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
build_dir=/tmp/${project}
|
build_dir=/tmp/${project}
|
||||||
@ -47,7 +55,8 @@ cp target/${project}*.jar ${build_dir}/${project}.jar
|
|||||||
|
|
||||||
git show HEAD:log4j2.properties > ${build_dir}/log4j2.properties
|
git show HEAD:log4j2.properties > ${build_dir}/log4j2.properties
|
||||||
|
|
||||||
git show HEAD:run.sh > ${build_dir}/run.sh
|
git show HEAD:start.sh > ${build_dir}/start.sh
|
||||||
|
git show HEAD:stop.sh > ${build_dir}/stop.sh
|
||||||
|
|
||||||
printf "{\n}\n" > ${build_dir}/settings.json
|
printf "{\n}\n" > ${build_dir}/settings.json
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user