The following pages might be of use:
$PTII/ptolemy/configs/doc/completeDemos.htm
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.
make checkjunk
and adding files as appropriate to the makefiles
$PTII/util/testsuite/chkjava
on the java files and fix problems
if (foo == bar) return;Right:
if (foo == bar) { return; }The reason this is important is because if one does
if (foo == bar) System.out.println("About to return"); return;then the return is not part of the if statement.
We indent using Jalopy to add braces and then reindent using jindent to get the indentation right.
To set up Jalopy:
http://jalopy.sourceforge.net/download.html
bin
, docs
and lib
in the current
directory, so be sure to unzip it inside an empty directory.
http://jalopy.sourceforge.net/plugin-console.html
bin/preferences.sh
c:/Program: not foundYou may need to edit
bin/preferences.sh
and put double
quotes around JAVACMD
in the last line:
"$JAVACMD" -classpath "$LOCALCLASSPATH" de.hunsicker.jalopy.swing.SettingsDialog
c:/Documents and Settings/username/.jalopy
If things get confusing, you may want to remove that directory
and start bin/preferences.sh
over again
- In the "Jalopy Settings" window, under Printer -> Braces
-> Misc, click all the boxes in the Insert braces section
- Change the continuation indent to 8 characters:
under Indentation -> Sizes, change the continuation indent to
8 characters.
- Disable sorting: under Printer -> Sorting -> Declarations,
uncheck "Sort class elements"
If sorting is not disabled, then the fields will be before the methods
- Change the wrapping so we wrap before operators:
under Printer -> Wrapping, in the Policy section, select
"Wrap before operators". Also, note that the line length should be
80 characters so that when we print out the software for review,
the lines print properly.
- Close the Jalopy Settings window, you are now ready to indent.
# Check out a clean tree # Make sure empty directories are removed cvs update -P -d # Run configure cd $PTII ./configure # Remove files created by JavaCC 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/jRun jalopy on the directory that has the pared down ptII tree:
cd path_to_jalopy bin/jalopy.sh -r $PTII
$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/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
-kb
$PTII/adm/copyright/fixcopyrights
(not shipped with
the release) and update the copyrights on the .java
, .tcl
and makefiles
$PTII/adm/copyright/fixsince
(not shipped with
the release) and update the @since tags
$PTII/adm/copyright/chkcopyright
on all the files.
find . -type f -print > ~/tmp/ff sh ~ptII/adm/copyright/chkcopyright `cat ~/tmp/ff | 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`
$PTII/util/testsuite/ptspell
.
cd $PTII make clean make -k JAVAC=gcj34 JFLAGS="-O2 -Wunused -Wextraneous-semicolon -Wno-deprecated -C" all >& make.out &
cd /home/cvs/ptII chmod -R a+rX . find . -name "*.java,v" -exec chmod a-x {}\; find . -name "*makefile,v" -exec chmod a-x {}\; find . -name "*.tcl,v" -exec chmod a-x {}\;
To make a branch for 5.1-devel, use the following command:
cd $PTII cvs tag -b rel-5.1-develThen check out the release branch with
cd ~/src cvs co -r rel-5.1-devel ptII mv ptII ptII5.1-devel
$PTII/makefile
and $PTII/ptolemy/plot/makefile
.
cvs co -r rel-5.1-devel ptII mv ptII ptII5.1-devel cd ptII5.1-devel setenv PTII `pwd` cd $PTII/adm/gen-5.1 make USER=cxh PTIIHOME=/tmp/ptII5.1-devel PTIIADM=/tmp/ptII5.1-devel/adm TAR=/usr/sfw/bin/gtar JAR=/bin/jar clean all >& make.out &The resulting file with the .class files gets copied to the website and untar'd.
make USER=cxh PTIIHOME=/tmp/ptII5.1-devel PTIIADM=/tmp/ptII5.1-devel/adm TAR=/usr/sfw/bin/gtar JAR=/bin/jar update_ftp
cd /export/home/pt0/ptweb/ptolemyII/ptII5.0/ptII5.0.1/ptolemy/plot ln -s ../../../../../java/ptplot5.5/ptolemy/plot/ptplot5.5* . cd doc rm -rf download ln -s ../../../../../../java/ptplot5.5-beta/ptolemy/plot/doc/download .
ptolemy/domains/gr
cvs co -r rel-5.1-devel ptII
mv ptII ptII5.1-devel
cd ptII5.1-devel
export PTII=c:/src/ptII5.1-devel
./configure
Set up missing packages such as joystick, JAI, JMF, javacomm, quicktime
./configure
make fast
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/adm/gen-5.1 make USER=cxh PTIIHOME=/cygdrive/c/cxh/ptII5.1-devel COMPRESS=gzip TAR=tar clean all src.jar
Last Updated: $Date: 2005/10/25 16:28:04 $