| 80 | | There are two methods for creating an archive for distribution, using DESTDIR and using diff_zip. [[BR]] |
| 81 | | [[BR]] |
| 82 | | For both situations, please use the following nomeclature as the <archivename> : [[BR]] |
| 83 | | '''<packagename>-<version>-<gcc-version>-<os>-<date>.zip''' [[BR]] |
| 84 | | {{{ |
| 85 | | <packagename> = is the name of the software. |
| 86 | | <version> = the revision number of the actual software. |
| 87 | | <gcc-version> = [ gcc2 | gcc4 ] |
| 88 | | <os> = [ haiku | zeta | bone ] |
| 89 | | <date> YYYY-MM-DD format and can be extracted by running `date +%Y-%m-%d` |
| 90 | | }}} |
| 91 | | [[BR]] |
| 92 | | DESTDIR is the preferred method : [[BR]] |
| 93 | | {{{ |
| 94 | | mkdir /boot/foo |
| 95 | | make install DESTDIR=/boot/foo |
| 96 | | cd /boot/foo/boot |
| 97 | | zip -r9y <archivename>.zip * |
| 98 | | }}} |
| 99 | | [[BR]] |
| 100 | | diff_zip is an alternate method : [[BR]] |
| 101 | | Some software packages do not support the use of DESTDIR. For these cases, diff_zip is your friend. It was added to Haiku's source tree in [http://lists.berlios.de/pipermail/haiku-commits/2008-April/007561.html revision 24849]. Once the newly compiled software is ready to install, diff_zip is run in a second Terminal session. diff_zip will patiently wait for you to install the software. After installation, return to the second Terminal session to inform diff_zip to archive the newly added files. |
| 102 | | {{{ |
| 103 | | [terminal 1] make |
| 104 | | [terminal 2] cd ~/upload |
| 105 | | [terminal 2] diff_zip -r9y <archivename> -- <paths> |
| 106 | | [terminal 1] make install |
| 107 | | [terminal 2] #press enter to activate diff_zip |
| 108 | | }}} |
| | 80 | HaikuPorter has a command line option -d which will build the package and then zip it up. Be sure to check that this works correctly if you are creating .bep files. It's usually good to check the builds with -c -d to first clean out the build directory. To see a full list of Haikuporter's command line options use haikuporter -h |