diff --git a/Makefile b/Makefile index 6619e151..68ee4933 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ export TOOL_NAME = XcodeGen export TOOL_NAME_LOWER = xcodegen -VERSION = 1.6.0 +export VERSION = 1.6.0 PREFIX = /usr/local INSTALL_PATH = $(PREFIX)/bin/$(TOOL_NAME_LOWER) diff --git a/scripts/archive.sh b/scripts/archive.sh index 057d29f1..0863f79d 100755 --- a/scripts/archive.sh +++ b/scripts/archive.sh @@ -1,5 +1,6 @@ #!/bin/bash -TMP=$(mktemp -d)/${TOOL_NAME:?} +PACKAGE_NAME=${TOOL_NAME:?}-${VERSION:?} +TMP=$(mktemp -d)/$PACKAGE_NAME BINDIR=$TMP/bin SHAREDIR=$TMP/share ZIPFILE=$TMP/${TOOL_NAME_LOWER:?}.zip @@ -20,7 +21,7 @@ cp $LICENSE $TMP # zip -(cd $TMP/..; zip -r $ZIPFILE $TOOL_NAME) +(cd $TMP/..; zip -r $ZIPFILE $PACKAGE_NAME) # print sha