The following pages might be of use:
$PTII/ptolemy/configs/doc/completeDemos.htm
cd $PTII/ptolemy/configs/doc make check_appletsNote that not all the applets listed are missing. Some of them use the serial port, JAI, JMF etc.
To add an applet:
cd $PTII/ptolemy/domains/wireless/demo/SmartParking $PTII/bin/copernicus -codeGenerator applet -targetPath ptolemy/domains/wireless/demo/SmartParking SmartParking.xmlThen add the
.htm
files to the makefile.
mv FooVergilApplet.htm FooApplet.htm
about:copyright
URLS specially. One facility on the copyrigth page is the ability
to expand all the model, .html files and .pdf files on
the various demonstration pages. This allows us to
verify that all the resources are present in the tree.
about:copyright
is an essential part of testing each release.
about:copyright
to test the Web Start release.
# Check out a clean tree cvs -d :ext:source.eecs.berkeley.edu:/home/cvs co ptII cd ptII # Make sure empty directories are removed cvs update -P -d setenv PTII `pwd` ./configure make
make checkjunk
and adding files as appropriate to the makefiles:
cd $PTII make clean_shipping make checkjunkLook for
***
lines and add files to makefiles
or add them to the clean_shipping rule in $PTII/makefile
and the most recent src.ex
file in
$PTII/adm/gen-x.y
/src.ex.
$PTII/util/testsuite/chkjava
on the java files and fix problems
cd $PTII make cleanDerivedJavaFilesOr removing the files by hand:
cd $PTII/ptolemy/data/expr rm `make echo_OPTIONAL_JSRCS` cd $PTII/ptolemy/data/unit rm `make echo_OPTIONAL_JSRCS` cd $PTII/ptolemy/copernicus/kernel/fragment rm `make echo_OPTIONAL_JSRCS` # Create a file that contains the names of the java files to include cd $PTII rm -rf vendors apps rm -rf ptolemy/domains/ct/demo/Corba/util/*.java
adm/bin/ptIItxtfiles > /tmp/f egrep '*.java$' /tmp/f | grep -v /vendors/ >& /tmp/j
$PTII/adm/bin/addtrailingnl
cd $PTII # Run addtrailingnl without actually doing anything: cat /tmp/j | xargs $PTII/adm/bin/addtrailingnl -n # Run addtrailingnl with adding the new lines: cat /tmp/j | xargs $PTII/adm/bin/addtrailingnl # Run with -n and then without: cat /tmp/f | egrep '*.[ch]$' | xargs $PTII/adm/bin/addtrailingnl -n cat /tmp/f | egrep README | xargs $PTII/adm/bin/addtrailingnl -n cat /tmp/f | egrep '*.htm' | xargs $PTII/adm/bin/addtrailingnl -n cat /tmp/f | egrep '*.tcl' | xargs $PTII/adm/bin/addtrailingnl -n cat /tmp/f | egrep '*.xml' | xargs $PTII/adm/bin/addtrailingnl -n
cat /tmp/j | xargs $PTII/adm/bin/fix-files -n
cat /tmp/f | xargs $PTII/util/testsuite/controlmUse dos2unix to fix the files.
ptolemy/copernicus/c/test/
should have a control-M in them, so don't remove them.
cat /tmp/f | xargs cvs status >& /tmp/cv.outThen search /tmp/cv.out for
-k
, and fix all
files that have -kv
and -kb
(except
the .plt
files, which can be -kb
).
To fix these files do:
cvs admin -kkv filename cvs update -A filename
$PTII/adm/copyright/fixcopyrights
(not shipped with
the release) and update the copyrights on the .java
, .tcl
and makefiles
cd $PTII cvs update -P -d -A
$PTII/adm/gen-X.Y
, update the version number
and run make. See the top of the file for the appropriate make command.
$PTII/adm/copyright/chkcopyright
on all the nightly buildfiles.
$PTII/adm/copyright/chkcopyright
and update the year.
cat /tmp/f | grep -v .class | grep -v codeDoc | grep -v xml | grep -v \ alljtests.tcl | grep -v .htm | grep -v qcf | grep -v .dtd | grep -v \ gif | grep -v .cvsignore | xargs sh $PTII/adm/copyright/chkcopyright >& /tmp/copycheck grep "does not contain a Copyright" /tmp/copycheck | grep -v README
$PTII/adm/bin/fixsince
(not shipped with
the release) and update the @since tags
$PTII/util/testsuite/ptspell
.
cd $PTII/doc make findbugs.htm
cd $PTII make clean make -k JAVAC=gcj JFLAGS="-O2 -Wunused -Wextraneous-semicolon -Wno-deprecated -C" all >& gcj.out & grep error: gcj.out | awk -F: '{for(i=3;i<=NF;i++) {printf("%s ",$i)} printf("\n");}' | sort | uniq | grep -v "not found in the decl"
cd /home/cvs/ptII chmod -R a+rX . find . -name "*.java,v" -exec chmod a-x {} \; find . -name "*.htm,v" -exec chmod a-x {} \; find . -name "*.html,v" -exec chmod a-x {} \; find . -name "*makefile,v" -exec chmod a-x {} \; find . -name "*.tcl,v" -exec chmod a-x {} \; find . -name "*.xml,v" -exec chmod a-x {} \;
To make a branch for 6.0.beta, use the following command:
cd $PTII cvs tag -b rel-6-0-betaThen check out the release branch with
cd ~/src cvs co -r rel-6-0-beta ptII mv ptII ptII6.0.betaNote that you should avoid dots in the tag name
$PTII/makefile
and $PTII/ptolemy/plot/makefile
.
cd ptII6.0.beta export PTII `pwd` ./configure make cvs_delete_clean_shipping
cvs -D :ext:source:/home/cvs co -r rel-6-0-beta ptII mv ptII ptII6.0.beta cd ptII6.0.beta setenv PTII `pwd` cvs update -P -d ./configure cd bin; make cd $PTII/adm/gen-6.0 make USER=cxh PTIIHOME=/tmp/cxh/ptII6.0.beta PTIIADM=/tmp/cxh/ptII6.0.beta/adm TAR=/bin/tar JAR=/tmp/cxh/jdk1.5.0_09/bin/jar clean all src.jar fortytwo_testThe resulting file with the .class files gets copied to the website and untar'd. Note that this does not require Java 3D on the build machine. Java 3D is needed for the applets, we copy the jars over later.
make USER=cxh PTIIHOME=/tmp/cxh/ptII6.0.beta PTIIADM=/tmp/cxh/ptII6.0.beta/adm TAR=/bin/tar JAR=/tmp/cxh/jdk1.5.0_09/bin/jar update_ftpor
make USER=cxh PTIIHOME=/tmp/cxh/ptII6.0.beta PTIIADM=/tmp/ptII6.0.abeta/adm TAR=/usr/sfw/bin/gtar JAR=/bin/jar update_ftp
cd /export/home/pt0/ptweb/ptolemyII/ptII6.0/ptII6.0.beta/ptolemy/plot ln -s ../../../../../java/ptplot5.6/ptolemy/plot/ptplot5.6* . cd doc rm -rf download ln -s ../../../../../../java/ptplot5.6.beta/ptolemy/plot/doc/download .
ptolemy/domains/gr
cvs -d :ext:source:/home/cvs co -r rel-6-0-beta ptII cvs update -P -d mv ptII ptII6.0.beta cd ptII6.0.beta export PTII=c:/tmp/cxh/ptII6.0.beta Set up missing packages such as joystick, JAI, JMF, javacomm, quicktime
cp ../ptII6.0.beta/doc/design/ptIIdesign*.pdf doc/design
make cvs_delete_clean_shippingUse an older javac so that the .class files are compatible. For example, use java 1.4.x so that java 1.4.x and 1.5.x can use the .class files.
export PATH=/cygdrive/c/j2sdk1.4.2_13/bin:${PATH}
java -version
./configure
make clean fast install >& make.out
Copy ~ptII/adm/certs/ptkeystore
to $PTII. Note you will
need access to the ptII account on bennett
make jnlp_dist STOREPASSWORD="-storepass xxx" KEYPASSWORD="-keypass xxx"
xxx is the ptkeystore password.
cd $PTII make jar_distLook for missing jar files in the output.
cd $PTII/adm/gen-6.0 make USER=cxh PTIIHOME=/cygdrive/c/cxh/ptII6.0.beta COMPRESS=gzip TAR=tar clean all src.jar
cd $PTII make exes cd $PTII/adm/gen-x.y make TAR=tar make_izpack make setup
Last Updated: $Date: 2007/02/04 05:02:39 $