1#!/bin/sh
2
3NAME=phpfreechat-`cat ../version.txt`
4PFCSETUPNAME=pfcsetup-`cat ../version.txt`
5
6echo "-- creating archive $NAME --"
7echo "-> copying files"
8rm -rf ./$NAME
9svn export .. ./$NAME
10rm -rf ./$NAME/contrib
11rm -rf ./$NAME/admin
12rm -rf ./$NAME/lib/pear/.registry
13
14#echo "-> downloading documentation"
15#wget http://www.phpfreechat.net/pages/fr/install.html   -q -O ./$NAME/install.fr.html
16#wget http://www.phpfreechat.net/pages/en/install.html   -q -O ./$NAME/install.en.html
17#wget http://www.phpfreechat.net/pages/fr/faq.html       -q -O ./$NAME/faq.fr.html
18#wget http://www.phpfreechat.net/pages/en/faq.html       -q -O ./$NAME/faq.en.html
19#wget http://www.phpfreechat.net/pages/fr/overview.html  -q -O ./$NAME/overview.fr.html
20#wget http://www.phpfreechat.net/pages/en/overview.html  -q -O ./$NAME/overview.en.html
21#wget http://www.phpfreechat.net/pages/ar/overview.html  -q -O ./$NAME/overview.ar.html
22#wget http://www.phpfreechat.net/pages/es/overview.html  -q -O ./$NAME/overview.es.html
23#wget http://www.phpfreechat.net/pages/zh/overview.html  -q -O ./$NAME/overview.zh.html
24#wget http://www.phpfreechat.net/pages/fr/customize.html -q -O ./$NAME/customize.fr.html
25#wget http://www.phpfreechat.net/pages/en/customize.html -q -O ./$NAME/customize.en.html
26#wget http://www.phpfreechat.net/pages/fr/changelog.html -q -O ./$NAME/changelog.fr.html
27#wget http://www.phpfreechat.net/pages/en/changelog.html -q -O ./$NAME/changelog.en.html
28
29echo "-> creating checkmd5.php file"
30./checkmd5 ./$NAME ./$NAME/checkmd5.php
31
32echo "-> creating $NAME.tar.gz"
33tar czfp $NAME.tar.gz ./$NAME
34echo "-> creating $NAME.zip"
35zip -Tq9r $NAME.zip ./$NAME
36echo "-> creating $NAME-setup.php"
37php ./createwebinstaller.php `cat ../version.txt` > /dev/null
38
39#echo "-> creating $PFCSETUPNAME.tar.gz"
40#rm -rf ./$PFCSETUPNAME
41#svn export ../contrib/pfcInstaller2 $PFCSETUPNAME
42#rm -rf ./$PFCSETUPNAME/.registry
43#rm -rf ./$PFCSETUPNAME/.depdblock
44#rm -rf ./$PFCSETUPNAME/.lock
45#rm -rf ./$PFCSETUPNAME/.channels
46#rm -rf ./$PFCSETUPNAME/tmp
47#rm -rf ./$PFCSETUPNAME/bin
48#rm -rf ./$PFCSETUPNAME/PEAR
49#rm -rf ./$PFCSETUPNAME/System.php
50#rm -rf ./$PFCSETUPNAME/peclcmd.php
51#rm -rf ./$PFCSETUPNAME/pearcmd.php
52#rm -rf ./$PFCSETUPNAME/pear.sh
53#rm -rf ./$PFCSETUPNAME/pearrc
54#rm -rf ./$PFCSETUPNAME/OS
55#echo "$NAME.tar.gz" > $PFCSETUPNAME/archivename
56#echo `pwd` >> $PFCSETUPNAME/mirrors
57#tar czfp $PFCSETUPNAME.tar.gz ./$PFCSETUPNAME
58#echo "-> creating $PFCSETUPNAME.zip"
59#zip -Tq9r $PFCSETUPNAME.zip ./$PFCSETUPNAME
60#rm -rf ./$PFCSETUPNAME
61
62echo "-> removing temporary files"
63rm -rf ./$NAME
64echo "-- creating archive $NAME, done --"
65