Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

migrate to Git

  • Loading branch information...
commit 731b10f2f295d2f92d5e09d64ba9a400b6fb9860 1 parent 54db399
Nuno Lopes authored
Showing with 6 additions and 5 deletions.
  1. +1 −1  TECH_NOTES
  2. +5 −4 cron/cron.sh
View
2  TECH_NOTES
@@ -30,7 +30,7 @@ on its own.
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.
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
View
9 cron/cron.sh
@@ -90,9 +90,9 @@ do
PIDFILE=${OUTDIR}/build.pid
if [ "${PHPTAG}" = "PHP_HEAD" ]; then
- SVNDIR="trunk"
+ GITBRANCH="master"
else
- SVNDIR="branches/${PHPTAG}"
+ GITBRANCH=`echo "$PHPTAG" | sed 's/_\([0-9]*\)/-\1/' | sed 's/_/./g'`
fi
mkdir -p $OUTDIR
@@ -103,12 +103,13 @@ do
cd ${PHPROOT}
if [ -d ${PHPTAG} ]; then
cd ${PHPTAG}
- svn up
+ git pull
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}
fi
./vcsclean
+ cp "../config.$PHPTAG" config.nice
if [ "${PHPTAG}" = "PHP_5_3" ]; then
PHP_AUTOCONF=autoconf-2.13 ./buildconf --force > /dev/null
Please sign in to comment.
Something went wrong with that request. Please try again.