Genericize paths.master
authorEdward Z. Yang <edwardzyang@thewritingpot.com>
Fri, 27 Mar 2009 21:04:32 +0000 (27 17:04 -0400)
committerEdward Z. Yang <edwardzyang@thewritingpot.com>
Fri, 27 Mar 2009 21:04:32 +0000 (27 17:04 -0400)
Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
bin/phpv
bin/phpv-cgi
get-url.php
install.sh

index fa8cf42..510da07 100755 (executable)
--- a/bin/phpv
+++ b/bin/phpv
@@ -6,4 +6,4 @@ then
     exit
 fi
 shift 1
-"/home/ezyang/Dev/php/versions/$VERSION/bin/php" $@
+"`dirname "$0"`/../versions/$VERSION/bin/php" $@
index fdb7a11..f9d6ace 100755 (executable)
@@ -6,4 +6,4 @@ then
     exit
 fi
 shift 1
-"/home/ezyang/Dev/php/versions/$VERSION/bin/php-cgi" $@
+"`dirname "$0"`/../versions/$VERSION/bin/php-cgi" $@
index a4ef335..b0581a5 100644 (file)
@@ -20,8 +20,13 @@ $install_version = $_SERVER['argv'][1];
 $url_mirror = 'http://us2.php.net';
 $url_releases = $url_mirror . '/releases/';
 $url_downloads = $url_mirror . '/downloads.php';
+$url_qa = 'http://qa.php.net';
 
-$link_sets = array(extract_links($url_releases), extract_links($url_downloads));
+$link_sets = array(
+    extract_links($url_releases),
+    extract_links($url_downloads),
+    extract_links($url_qa)
+);
 $index = array();
 
 foreach ($link_sets as $links) {
index bc4f0e5..557b4e1 100755 (executable)
@@ -7,7 +7,7 @@ wget $URL -O "php-$VERSION.tar.gz"
 tar xzf "php-$VERSION.tar.gz"
 mkdir "../versions/$VERSION"
 cd "php-$VERSION"
-./configure --prefix=/home/ezyang/Dev/php/versions/$VERSION
+./configure --prefix=../../versions/$VERSION
 make
 make install
 ../../versions/$VERSION/bin/php --version