Merge pull request #12 from deltachat/tolerant-package-name
be more tolerant on PACKAGE_NAME argumentmaster
commit
747c94fc49
|
@ -6,10 +6,10 @@ case "$1" in
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
"")
|
"")
|
||||||
PACKAGE_NAME=${PWD##*/}
|
PACKAGE_NAME=${PWD##*/} # '##*/' removes everything before the last slash and the last slash
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
PACKAGE_NAME=$1
|
PACKAGE_NAME=${1%.xdc} # '%.xdc' removes the extension and allows PACKAGE_NAME to be given with or without extension
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue