-brisk_conf="brisk.conf.pho"
-
-if [ "$1" = "chk" ]; then
- set -e
- oldifs="$IFS"
- IFS='
-'
- for i in $(find -name '*.pho' -o -name '*.phh' -o -name '*.php'); do
- php5 -l $i
- done
- exit 0
-fi
-
-# before all check errors on the sources
-$0 chk || exit 3
-
-if [ "$1" = "pkg" ]; then
- if [ "$2" != "" ]; then
- tag="$2"
- else
- tag="$(git describe)"
- fi
- nam1="brisk_${tag}.tgz"
- nam2="brisk-img_${tag}.tgz"
- echo "Build packages ${nam1} and ${nam2}."
- read -p "Proceed [y/n]: " a
- if [ "$a" != "y" -a "$a" != "Y" ]; then
- exit 1
- fi
- git archive --format=tar --prefix=brisk-${tag}/brisk/ $tag | gzip > ../$nam1
- cd ../brisk-img
- git archive --format=tar --prefix=brisk-${tag}/brisk-img/ $tag | gzip > ../$nam2
- cd -
- exit 0
-fi
-
-if [ -f $HOME/.brisk_install ]; then
- . $HOME/.brisk_install
-fi
-
-if [ "x$cookie_path" = "x" ]; then
- cookie_path=$web_path
-fi