Browse Source

devel: fix $@ processing

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1097 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 9 years ago
parent
commit
860448f444
  1. 29
      devel/run

29
devel/run

@ -4,19 +4,26 @@ set -e
MAKE=/usr/bin/make
. devel/run.cfg
if [[ ! -z $1 ]]; then
if [[ $# -gt 0 ]]; then
type=$1
shift
if [[ $# -gt 0 ]]; then
args=("$@")
fi
fi
if [[ -z ${args[0]} ]]; then
args=(devel.php)
fi
case "$type" in
prep*)
shift
exec $MAKE -f devel/prepare.mak "$@"
exec $MAKE -f devel/prepare.mak "${args[@]}"
;;
tags)
rm -f tags
shift
exec $MAKE -f devel/prepare.mak tags "$@"
exec $MAKE -f devel/prepare.mak tags "${args[@]}"
;;
dep*)
pwd=$(readlink -f "$(pwd)")
@ -90,18 +97,6 @@ phpbasename=${basename#*-}
xcachebasename=${basename%%-*}
xcachesrcdir=../$xcachebasename
if [[ $# -gt 0 ]]; then
type=$1
shift
if [[ $# -gt 0 ]]; then
args=("$@")
fi
fi
if [[ -z ${args[0]} ]]; then
args=(devel.php)
fi
case "$type" in
phpize)
if [[ -r Makefile ]]; then

Loading…
Cancel
Save