Browse Source

more clean for rebuild

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@995 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 9 years ago
parent
commit
e5ee2e69e3
  1. 23
      devel/run

23
devel/run

@ -19,23 +19,25 @@ if echo $basename | grep -- - >/dev/null; then :; else
for dir in $dirs; do
cd ../${basename}-${dir} || exit
rm -f php-src
find -L . -type l | xargs rm -f
lndir ../$basename >/dev/null
find . -iname .\*.swp | xargs rm -f
ln -sf ~/src/php/$dir php-src
for i in ~/src/php/$dir/sapi/cgi/php{,-cgi}; do
[[ -r $i ]] && ln -sf "$i" php-cgi
done
ln -sf ~/src/php/$dir/sapi/cli/php php-cli
pwd
$0 "$@"
done
exit
fi
phpbasename=${basename#*-}
xcachebasename=${basename%%-*}
xcachesrcdir=../$xcachebasename
rm -f php-src
find -L . -type l | xargs rm -f
lndir "$xcachesrcdir" >/dev/null
find . -iname .\*.swp | xargs rm -f
ln -sf ~/src/php/$phpbasename php-src
for i in ~/src/php/$phpbasename/sapi/cgi/php{,-cgi}; do
[[ -r $i ]] && ln -sf "$i" php-cgi
done
ln -sf ~/src/php/$phpbasename/sapi/cli/php php-cli
if [[ ! -z $1 ]]; then
type=$1
@ -56,6 +58,7 @@ reb*)
exit
fi
export PATH=$PHPDIRS/$phpbasename/bin:$PATH
[[ -r Makefile ]] && make xcachesvnclean
phpize --clean \
&& phpize \
&& CFLAGS="-Wall -Wno-unused -W -Wshadow -std=gnu99" ./configure --enable-xcache-disassembler --enable-xcache-test --enable-xcache-constant \

Loading…
Cancel
Save