mirror of
https://github.com/kiteco/kiteco-public.git
synced 2024-09-11 13:38:04 +03:00
20 lines
519 B
Bash
Executable File
20 lines
519 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Move the staged windows build to the release repo
|
|
|
|
set -e # exit if any command fails
|
|
|
|
KITECO="${KITECO:-$HOME/kiteco}"
|
|
RELEASE_BUILD_DIR="${KITECO}/scripts"
|
|
|
|
if [-z "$1"]; then
|
|
echo "No staged build directory supplied"
|
|
else
|
|
# remove previous contents
|
|
rm -r $RELEASE_BUILD_DIR/staged-windows-build
|
|
# mkdir if it doesn't exist
|
|
mkdir -p $RELEASE_BUILD_DIR/staged-windows-build
|
|
# copy over contents of staged build dir
|
|
cp -R $1 $RELEASE_BUILD_DIR
|
|
echo "staged release copied over"
|
|
fi |