Skip to content

Commit

Permalink
package-all.sh now works
Browse files Browse the repository at this point in the history
  • Loading branch information
thumperward committed Oct 10, 2023
1 parent d29c230 commit 5b07b01
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
9 changes: 2 additions & 7 deletions packaging/package-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,8 @@

set -o errexit -o pipefail || exit $?

if [ $# -ne "2" ]; then
echo "Usage: $(basename "$0") version outputdir."
exit 1
fi

export GIT_TAG="$1"
export BUILD_OUTPUT_DIR="$2"
export GIT_TAG="${1:-}"
export BUILD_OUTPUT_DIR="${2:-}"

# Set the working dir to the location of this script
HERE=$(dirname "$0")
Expand Down
18 changes: 11 additions & 7 deletions packaging/source/buildpackage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@

set -o errexit -o pipefail || exit $?

if [ $# -ne "2" ]; then
echo "Usage: $(basename "$0") tag outputdir"
exit 1
fi

# Set the working dir to the location of this script
HERE=$(dirname "$0")
cd "${HERE}"

TAG="$1"
OUTPUTDIR="$2"
TAG="${1:-devtest-19700101}"

if [ -z ${2:-} ]; then
OUTPUTDIR=$(pwd)/../../build/source
mkdir -p $OUTPUTDIR
else
OUTPUTDIR="${2}"
fi

SRCDIR="$(pwd)/../.."

pushd "${SRCDIR}" > /dev/null
Expand All @@ -26,4 +28,6 @@ rm "${OUTPUTDIR}/OpenRA-${TAG}-source.tar" || :
git ls-tree HEAD --name-only -r -z | xargs -0 tar vrf "${OUTPUTDIR}/OpenRA-${TAG}-source.tar"
bzip2 "${OUTPUTDIR}/OpenRA-${TAG}-source.tar"

make version VERSION='{DEV_VERSION}'

popd > /dev/null

0 comments on commit 5b07b01

Please sign in to comment.