makepack #1

  • //
  • guest/
  • fredric_fredricson/
  • P4DB/
  • rel/
  • 2.1/
  • makepack
  • View
  • Commits
  • Open Download .zip Download (1 KB)
#
# 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 <<END
/VER-HERE/ 
. p
s/:VER-HERE:/$change/
. p
w
q
END

rm p4jdb/*.class
make 

PL_FILES=`ls -1 *.pl | fgrep -v install.pl` ;

Files="P4CGI.pm *.cgi $PL_FILES p4pr.perl viewConfig.pm colorView.pm Makefile p4jdb/*.java p4jdb/*.class icons/back.gif icons/*.png P4DB_Help.html" ;
ReadMe="README.html P4DB.shortcuts.txt P4DB.shortcuts2.txt P4CGI.html P4DB.conf.txt" ;
pod2html 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






# Change User Description Committed
#1 1933 Fredric Fredricson P4DB: Created 2.1 "release branch".
(The quotation marks are
there because this is not really a release. Yet. Perhaps.)
//guest/fredric_fredricson/P4DB/main/makepack
#2 1920 Fredric Fredricson P4DB: Mainly some user interface fixes:
* Added a small arrow that points to selection in list of options
* Added tooltip help
* Added user prefereces to turn the above off (or on)
* Some other user interface fixes
And fixed a bug in jobList.cgi and some minor bugs in label and branch
viewers.
#1 1639 Fredric Fredricson P4DB: Added a script "makepack" that I used to build
tarballs for distribution