# # Make a package # # Ver=`fgrep '$VERSION=' P4CGI.pm | perl -ne ' /.*?\"([\d\.]+)/ ; print $1,"\n" ;'` echo VERSION: $Ver export PATH=$PATH:/usr/lib/jdk1.1.7/bin/ 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 cp P4CGI.pm P4CGI.pm.TMP ed P4CGI.pm <P4CGI.html tar cvf cgi_files.tar $Files zip -v cgi_files.zip $Files tar cvzf P4DB_$Ver.tar.gz $ReadMe install.pl cgi_files.tar zip -v P4DB_$Ver.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