Merge pull request #8 from deltachat/improve-script
create-xdc.sh improvements, use project folder name as default PACKAGE_NAME
This commit is contained in:
commit
0bd3486980
|
@ -1,12 +1,17 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ $# -eq 0 ]
|
case "$1" in
|
||||||
then
|
"-h" | "--help")
|
||||||
echo "usage: zip-xdc.sh PACKAGE_NAME"
|
echo "usage: ${0##*/} [PACKAGE_NAME]"
|
||||||
exit
|
exit
|
||||||
fi
|
;;
|
||||||
|
"")
|
||||||
|
PACKAGE_NAME=${PWD##*/}
|
||||||
|
;;
|
||||||
|
*)
|
||||||
PACKAGE_NAME=$1
|
PACKAGE_NAME=$1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
rm $PACKAGE_NAME.xdc 2> /dev/null
|
rm $PACKAGE_NAME.xdc 2> /dev/null
|
||||||
zip -9 --recurse-paths $PACKAGE_NAME.xdc * --exclude README.md webxdc.js "*.sh" "*.xdc"
|
zip -9 --recurse-paths $PACKAGE_NAME.xdc * --exclude README.md webxdc.js "*.sh" "*.xdc"
|
||||||
|
|
Loading…
Reference in a new issue