# A-A-P recipe for uploading a .zip file with all A-A-P Exec sources to # sourceforge. # This is just an example. Read it and learn, but DO NOT EXECUTE IT. # Otherwise you would upload the files to the sourceforge "incoming" directory, # where you can't delete them. MINOR = 033 MAJOR = 0 VERSION = $MAJOR.$MINOR RELDIR = released {directory} ZIPFILE = $-RELDIR/exec-$VERSION.zip FILES = COPYING README.txt docs.txt filetype.txt default.aap test.aap `glob("*.py")` `glob("unittest/*.py")` `glob("rectest/*.py")` all: $ZIPFILE cvs {virtual} # Generate the .zip archive and upload it to sourceforge. $ZIPFILE : $FILES dist/comment $RELDIR :del -f $target :sys zip -9 -z $target $FILES ! $target A-A-P recipe executive source files version $VERSION # Write the version number to Version.py, so that upload.aap is the only place # where it needs to be updated. # Since $TIMESTR always changes, these commands are always executed. Version.py : :print Updating $target :print >! $target $# GENERATED FILE, DO NOT EDIT :print >> $target $# This file is generated by upload.aap :print >> $target :print >> $target version_string = "$VERSION" $# version number as a string :print >> $target version_number = "$MAJOR$MINOR" $# version number as a number :print >> $target version_date = "$DATESTR" $# release date of this version :print >> $target version_time = "$TIMESTR" $# release time of this version # Update the CVS archive. # In your ~/.aap/startup/main.aap set $CVSUSER_AAP to your login name on # SourceForge. Type your password when prompted. # See SourceForge for directions on how to use their CVS server. cvs: $FILES CVSROOT = :ext:$CVSUSER_AAP@cvs.a-a-p.sf.net:/cvsroot/a-a-p :sys cvs -d$CVSROOT commit -m "updated for version $VERSION" $FILES :sys cvs -d$CVSROOT tag v$MAJOR$MINOR .