mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2024-09-17 15:47:08 +03:00
improve downloaded directory name with version
This commit is contained in:
parent
f54028567d
commit
be0e537898
2
Makefile
2
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)
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user