Skip to content

Commit

Permalink
migrate to Git
Browse files Browse the repository at this point in the history
  • Loading branch information
nunoplopes committed Mar 20, 2012
1 parent 54db399 commit 731b10f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion TECH_NOTES
Expand Up @@ -30,7 +30,7 @@ on its own.


The cron scripts The cron scripts
---------------- ----------------
The cron script (cron/cron.sh) updates the SVN checkouts, runs The cron script (cron/cron.sh) updates the Git checkouts, runs
configure and make. Then it calls cron.php with generated log files. configure and make. Then it calls cron.php with generated log files.
Each php cron script is in a separated file, to follow a plugin-style Each php cron script is in a separated file, to follow a plugin-style
architecture. Each script then produces a .inc file that consists of architecture. Each script then produces a .inc file that consists of
Expand Down
9 changes: 5 additions & 4 deletions cron/cron.sh
Expand Up @@ -90,9 +90,9 @@ do
PIDFILE=${OUTDIR}/build.pid PIDFILE=${OUTDIR}/build.pid


if [ "${PHPTAG}" = "PHP_HEAD" ]; then if [ "${PHPTAG}" = "PHP_HEAD" ]; then
SVNDIR="trunk" GITBRANCH="master"
else else
SVNDIR="branches/${PHPTAG}" GITBRANCH=`echo "$PHPTAG" | sed 's/_\([0-9]*\)/-\1/' | sed 's/_/./g'`
fi fi


mkdir -p $OUTDIR mkdir -p $OUTDIR
Expand All @@ -103,12 +103,13 @@ do
cd ${PHPROOT} cd ${PHPROOT}
if [ -d ${PHPTAG} ]; then if [ -d ${PHPTAG} ]; then
cd ${PHPTAG} cd ${PHPTAG}
svn up git pull
else else
svn co "http://svn.php.net/repository/php/php-src/${SVNDIR}" ${PHPTAG} git clone http://git.php.net/repository/php-src.git -b $GITBRANCH $PHPTAG
cd ${PHPTAG} cd ${PHPTAG}
fi fi
./vcsclean ./vcsclean
cp "../config.$PHPTAG" config.nice


if [ "${PHPTAG}" = "PHP_5_3" ]; then if [ "${PHPTAG}" = "PHP_5_3" ]; then
PHP_AUTOCONF=autoconf-2.13 ./buildconf --force > /dev/null PHP_AUTOCONF=autoconf-2.13 ./buildconf --force > /dev/null
Expand Down

0 comments on commit 731b10f

Please sign in to comment.