improve downloaded directory name with version

This commit is contained in:
toshi0383 2018-02-26 19:33:12 +09:00
parent f54028567d
commit be0e537898
2 changed files with 4 additions and 3 deletions

View File

@ -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)

View File

@ -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