| 18 | = Prepare files = |
| 19 | |
| 20 | Prepare the files you want to distribute inside your personal Subversion repository and commit them back into Subversion. Then export them again. Export is needed so unnessesary svn meta data is not distributed. The exported files should then be packed. To keep the Portfile easy it is better to use the same archiver as is used for the main source file. You can use the following commands to do so: |
| 21 | |
| 22 | {{{ |
| 23 | Repository=http://svn.macports.org/repository/macports |
| 24 | User=userid |
| 25 | Port=portid |
| 26 | Version=12345 |
| 27 | |
| 28 | alias tar=/opt/local/bin/gnutar |
| 29 | alias mv=/opt/local/bin/gmv |
| 30 | alias rm=/opt/local/bin/grm |
| 31 | |
| 32 | svn export ${Repository}/users/${User}/${Port} |
| 33 | mv --verbose ${Port} ${Port}-r${in_Version} |
| 34 | tar --create --gzip --file="${Port}-r${Version}.tar.gz" "${Port}-r${in_Version}" |
| 35 | svn import -m"Add distfile for ${Port}" "${Port}-r${Version}.tar.gz" "${Repository}/distfiles/${Port}/${Port}-r${Version}.tar.gz" |
| 36 | echo rm --verbose --recursive "${Port}" |
| 37 | }}} |
| 38 | |
| 39 | Replace '''12345''' with a unique version identifier and '''userid''' and '''portid''' as you did before. Use [http://trac.macports.org/browser/users/krischik/nonpareil/Upload.command Upload.command] outlines one way on how to automate the whole process. |