3 # short little script to make a releaseable pear ball.... - for use with flexyframework projects.
10 git clone http://git.roojs.org/pear /tmp/pear
12 PEAR="pear -C ${TARGET}/pear.conf -c ${TARGET}/user.pear.conf -D php_dir=${TARGET} "
13 PEAR="${PEAR} -D bin_dir=/tmp/crap -D doc_dir=/tmp/crap -D test_dir=/tmp/crap"
14 PEAR="${PEAR} -D data_dir=/tmp/crap"
17 #be carefull, order is important (although we could use --fixdeps or whatever now)
19 #needed for pear-1.4.*
20 ${PEAR} channel-update pear.php.net
27 ${PEAR} install --force PEAR
29 #now some of the basic stuff..
53 Image_Transform-alpha \
57 ${PEAR} install --force Image_Text-beta
59 ${PEAR} install --force MDB2 MDB2#mysql MDB2#mysqli MDB2#pgsql MDB2#sqlite
62 Spreadsheet_Excel_Writer-beta \
71 #${PEAR} install PHPUnit
86 ${PEAR} install -o Cache
89 #// Kludge - unreleased dataobject!
91 #curl http://svn.php.net/repository/pear/packages/DB_DataObject/trunk/DataObject.php > /tmp/pear/DB/DataObject.php
95 #zip it up for a pearball..
97 rm -rf /tmp/pear/.channels
98 rm -rf /tmp/pear/.registry
99 rm -f /tmp/pear/pearcmd.php
100 rm -f /tmp/pear/peclcmd.php
101 rm -f /tmp/pear/user.pear.conf
102 rm -f /tmp/pear/.filemap
103 rm -f /tmp/pear/.depdb
104 rm -f /tmp/pear/.lock
105 rm -f /tmp/pear/.depdblock
106 rm -rf /tmp/pear/cache
107 rm -rf /tmp/pear/tests
108 rm -rf /tmp/pear/download
112 echo 'rsync -a /tmp/pear /your/location'