4 NAME
="htmlpurifier-$VERSION"
6 shopt -s expand_aliases
9 cp "$NAME/LICENSE" "$SNAME"
10 cp "$NAME/NEWS" "$SNAME"
11 cp "$NAME/INSTALL" "$SNAME"
12 cp "$NAME/CREDITS" "$SNAME"
15 if [ "$VERSION" = "" ]
17 echo "Version must be specified in first param"
21 # Dreamhost specific compatibility code
22 alias php
="/usr/local/dh/cgi-system/php5.cgi"
23 cd "/home/ezyang/htmlpurifier.org/releases"
25 if [ "$VERSION" = "trunk" ]
33 "http://htmlpurifier.org/svnroot/htmlpurifier/$LOC" \
36 #cp -R "$NAME" "$NAME.bak"
38 tar -cvf - "$NAME" |
gzip -c > "$NAME.tar.gz"
42 cp -R "$NAME/library" "$SNAME"
44 tar -cvf - "$SNAME" |
gzip -c > "$NAME-lite.tar.gz"
47 SNAME
="$NAME-standalone"
50 php
"$NAME/maintenance/merge-library.php"
51 mv "$NAME/library/HTMLPurifier.standalone.php" "$SNAME"
52 mv "$NAME/library/standalone" "$SNAME"
53 rm -Rf "$NAME/tests/blanks/*"
54 tar -cvf - "$SNAME" |
gzip -c > "$NAME-standalone.tar.gz"