com web/doc: replace it with an absolute path, as the path has to work bot for http://doc.php.net/php/dochowto/ and http://doc.php.net/dochowto/:
cron/weekly/howto
| From: | Ferenc Kovacs | Date: | Thu, 28 Feb 2013 01:56:02 +0000 |
| Subject: | com web/doc: replace it with an absolute path, as the path has to work bot for http://doc.php.net/php/dochowto/ and http://doc.php.net/dochowto/: cron/weekly/howto |
||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-2289@lists.php.net to get a copy of this message | ||
Commit: 3e955100138d3e422a51fce4d3ea43bd7317384b
Author: Ferenc Kovacs <tyra3l@gmail.com> Thu, 28 Feb 2013 02:56:02 +0100
Parents: cae85680a2af593cd60139e54e2d1b6fa2ec0183
Branches: master
Link: http://git.php.net/?p=web/doc.git;a=commitdiff;h=3e955100138d3e422a51fce4d3ea43bd7317384b
Log:
replace it with an absolute path, as the path has to work bot for http://doc.php.net/php/dochowto/ and http://doc..php.net/dochowto/
Changed paths:
M cron/weekly/howto
Diff:
diff --git a/cron/weekly/howto b/cron/weekly/howto
index 9e3f73e..6968614 100755
--- a/cron/weekly/howto
+++ b/cron/weekly/howto
@@ -8,7 +8,7 @@ phd -d ${SVNDIR}/${DOCDIR}/doc-base/howto/.howto.xml --package PHP -f howto -o $
# the generated path is wrong:
# http://git.php.net/?p=phd.git;a=blob;f=phpdotnet/phd/Package/PHP/HowTo.php;h=e06bfff451f4a947a41e493fc4f7252c21f130ca;hb=HEAD#l72
# dochowto is under www/ while the include directory is on the same level as www, so it is two
level above dochowto
-sed -i -e 's/..\/include\/init.inc.php/..\/..\/include\/init.inc.php/g' php-howto/*.php
+sed -i -e "s|../include/init.inc.php|${DOCWEB}/include/init.inc.php|g" php-howto/*.php
mv -f php-howto/*.php ${DOCWEB}/www/dochowto/
#make howtotgz