Add -branch option in repackage script

This commit is contained in:
Francesco Abbate 2021-09-10 15:47:33 +02:00
parent 218999dff8
commit 8dd530e5cf
1 changed files with 6 additions and 1 deletions

View File

@ -10,7 +10,7 @@ copy_directory_from_repo () {
fi fi
local dirname="$1" local dirname="$1"
local destdir="$2" local destdir="$2"
git archive master "$dirname" --format=tar | tar xf - -C "$destdir" "${tar_options[@]}" git archive "$lite_branch" "$dirname" --format=tar | tar xf - -C "$destdir" "${tar_options[@]}"
} }
lite_copy_third_party_modules () { lite_copy_third_party_modules () {
@ -23,12 +23,17 @@ lite_copy_third_party_modules () {
rm "$build/rxi-lite-colors.zip" rm "$build/rxi-lite-colors.zip"
} }
lite_branch=master
while [ ! -z ${1+x} ]; do while [ ! -z ${1+x} ]; do
case "$1" in case "$1" in
-dir) -dir)
use_dir="$(realpath $2)" use_dir="$(realpath $2)"
shift 2 shift 2
;; ;;
-branch)
lite_branch="$2"
shift 2
;;
*) *)
echo "unknown option: $1" echo "unknown option: $1"
exit 1 exit 1