Changes between Version 2 and Version 3 of CommittersGuide/Distfiles


Ignore:
Timestamp:
Mar 7, 2009, 12:01:16 PM (15 years ago)
Author:
krischik@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CommittersGuide/Distfiles

    v2 v3  
    33= Setup Repository =
    44
    5 First setup a [wiki:CommittersGuide/PersonalSVNRepository PersonalSVNRepository] to maintain the files. Inside your  SVN Repository you should create a directory with the portfiles name and there you prepare the files for the port.
    6 
    7 Then you create directory for you portfile inside the distfile area of the subversion repository:
     5First setup a [wiki:CommittersGuide/PersonalSVNRepository personal Subversion repository] to maintain the files. Inside your  Subversion repository you should create a directory with the portfiles name. Also create a directory for the Port you work on inside the distfile area of the subversion repository. You can use the commands below to do so:
    86
    97{{{
     
    1614}}}
    1715
    18 Replace '''userid''' and '''portid''' with your onw userid and the Port you are working on.
     16Replace '''userid''' and '''portid''' with your own userid and the Port you are working on.
    1917
     18= Prepare files =
     19
     20Prepare 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{{{
     23Repository=http://svn.macports.org/repository/macports
     24User=userid
     25Port=portid
     26Version=12345
     27
     28alias tar=/opt/local/bin/gnutar
     29alias mv=/opt/local/bin/gmv
     30alias rm=/opt/local/bin/grm
     31
     32svn export ${Repository}/users/${User}/${Port}
     33mv --verbose ${Port} ${Port}-r${in_Version}
     34tar --create --gzip --file="${Port}-r${Version}.tar.gz" "${Port}-r${in_Version}"
     35svn import -m"Add distfile for ${Port}" "${Port}-r${Version}.tar.gz" "${Repository}/distfiles/${Port}/${Port}-r${Version}.tar.gz"
     36echo rm --verbose --recursive "${Port}"
     37}}}
     38
     39Replace '''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.