# # Make a package # # Ver=`fgrep '$VERSION=' P4CGI.pm | perl -ne ' /.*?\"([\d\.]+[^"]*)/ ; print $1,"\n" ;'` echo VERSION: $Ver eval `p4 counters | sed 's/ //g'` OPENED=no if p4 opened | fgrep P4CGI.pm ; then OPENED=yes ; fi if [ $OPENED = "no" ] ; then p4 edit P4CGI.pm ; fi echo change: $change #cp P4CGI.pm P4CGI.pm.TMP ed P4CGI.pm <||i' > P4CGI.html tar cvf cgi_files.tar $Files rm -f cgi_files.zip zip -v cgi_files.zip $Files tar cvzf P4DB_${Ver}_${change}.tar.gz $ReadMe install.pl cgi_files.tar rm -f P4DB_$Ver.zip zip -v P4DB_${Ver}_${change}.zip $ReadMe install.pl cgi_files.zip rm cgi_files.tar cgi_files.zip cp P4CGI.pm tmp.tmp #mv P4CGI.pm.TMP P4CGI.pm if [ $OPENED = "no" ] ; then p4 revert P4CGI.pm ; fi