How to build an upgrade package
- create a directory for the upgrade package named upgrade
- find the differences between the two versions with this command
diff --recursive --brief --new-file obliquid-0.4.5 obliquid-0.4.4
- create the needed directories inside the upgrade package, don't worry if
some are missing, but don't create local/configs
-
copy the files that differ in the upgrade package with this command
diff -rqN obliquid-0.4.5 obliquid-0.4.4|sed 's/Files \(obliquid-0.4.5\)\(.*\) and .*/\1\2 upgrade\2/' | xargs -l1 cp
create the missing directory found and reissue the command until no errors are shown
- issue the opposite find to find the files to be deleted
diff --recursive --brief obliquid-0.4.5 obliquid-0.4.4 | grep Only | grep 0.4.4
- copy index.php in normal mode from the latest version
- copy README.upgrade and upgrade.php from the previous upgrade package and modify them
- diff config.xml and explain the differences in upgrade.php
- diff the database structure and database data to create the db upgrade script
- test the upgrade before releasing it, both with a find and a real test
- upload the release to upload.sourceforge.net in incoming directory
and fill the release form
- make a release announcement on sourceforge, freshmeat and on the forum