1
0
Fork 0

run devel stuffs in source dir

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@988 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
This commit is contained in:
Xuefer 2012-07-18 06:38:45 +00:00
parent 070be8e457
commit 28974db049
3 changed files with 14 additions and 11 deletions

View File

@ -1,10 +1,10 @@
#! /bin/bash
SELF="$0"
if test -e prepare.devel.inc ; then
. prepare.devel.inc
if test -e prepare.inc ; then
. prepare.inc
else
echo prepare.devel.inc is required, see prepare.devel.inc.example >&2
echo prepare.inc is required, see prepare.inc.example >&2
exit
fi

View File

@ -1,6 +1,15 @@
#!/bin/bash
# this script is for developers only
case "$1" in
prep*)
exec ./devel/prepare
;;
tags)
exec ./devel/prepare tags
;;
esac
. run.cfg
basename=$(basename $(pwd))
@ -39,13 +48,7 @@ if [[ ! -z $1 ]]; then
fi
fi
case $type in
prep*)
exec ./devel/prepare.devel
;;
tags)
exec ./devel/prepare.devel tags
;;
case "$type" in
reb*)
PHPDIRS=${PHPDIRS:-$HOME/test}
if [[ ! -x $PHPDIRS/$phpbasename/bin/phpize ]]; then
@ -56,7 +59,7 @@ reb*)
phpize --clean \
&& phpize \
&& CFLAGS="-Wall -Wno-unused -W -Wshadow -std=gnu99" ./configure --enable-xcache-disassembler --enable-xcache-test --enable-xcache-constant \
&& make
&& make clean all
exit
;;
make)