#!/bin/sh
if [ $# -lt 2 ];then
echo “USAGE: $0 pub pubfile”
echo “USAGE: $0 check (css|js|images|open|swf|maishi|cms)”
echo “USAGE: $0 clean all”
exit
fi
if [ $1 = “pub” ];then
pubfile=$2
if [ ! -f $pubfile ];then
echo “file not found:”$pubfile
exit
fi
fs=`/usr/bin/filesize ${pubfile}`
if [ $fs -lt 1 ];then
echo “file empty:”$fs
exit
fi