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

[email protected] (Ferenc Kovacs)
Newsgroups php.doc.web
Message-ID <[email protected]>
Commit:    3e955100138d3e422a51fce4d3ea43bd7317384b
Author:    Ferenc Kovacs <[email protected]>         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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.