diff options
| author | Remi Collet <fedora@famillecollet.com> | 2013-12-14 12:08:27 +0100 | 
|---|---|---|
| committer | Remi Collet <fedora@famillecollet.com> | 2013-12-14 12:08:27 +0100 | 
| commit | 791462d57db9e5257087f5cb459221bb06e27f92 (patch) | |
| tree | 03134bf28dfc8d1c4ad713d34d839386988fcdf9 /getautoloader.sh | |
| parent | 90ba966273e80724592fe7d04ecc34843e0aa15d (diff) | |
php-symfony: fix PEAR compatibility: add missing "autoloader.php"
Diffstat (limited to 'getautoloader.sh')
| -rw-r--r-- | getautoloader.sh | 32 | 
1 files changed, 32 insertions, 0 deletions
diff --git a/getautoloader.sh b/getautoloader.sh new file mode 100644 index 0000000..0e9af18 --- /dev/null +++ b/getautoloader.sh @@ -0,0 +1,32 @@ +#!/bin/sh + +if [ "$1" = "" ] +then +	echo usage $0 version +	exit 1 +fi + +tmp=$(mktemp --dir) +pushd $tmp + +echo -e "\n+ channel" +pear channel-discover pear.symfony.com + +echo -e "\n+ packages" +pear list-all -c symfony2 | while read name version descr +do +	if [ "$name" = "ALL" -o "$name" = "PACKAGE" -o "$version" = "" ] +	then +		continue +	fi +	pear download $name-$1 +	tar xf $(basename $name)-$1.tgz --strip-components=1 +done +lst=$(find Symfony -name autoloader.php) + +popd +echo -e "\n+ archive: autoloader-$1.tgz" +tar cvzf autoloader-$1.tgz -C $tmp $lst + +echo -e "\n+ cleanups" +rm -rf $tmp  | 
