Linking PamelaWare Common Code into a PamelaWare Plugin

Prerequisites

  • you have to have committer access to the plugin repository
  • you have to have a subversion client running

Set the External Property

  • check out the repository into a directory
    # svn co https://pamelaproject.com/svn/pw/pwmw/trunk/pwmw pwmw
    Checked out revision 1.
    
  • Set your editor preference and change directories to the main plugin directory
    # export EDITOR=vi
    # cd pwmw 
    
  • Run the svn propedit command
    # svn propedit svn:externals . 
    
  • Add the following two lines within the editor and save:
    pwlib   https://pamelaproject.com/svn/pw/pwcommon/trunk/pwlib
    legal   https://pamelaproject.com/svn/pw/pwcommon/trunk/legal
    

Test & Commit the External Setting

  • test the setting with the propget function:
    # svn propget svn:externals .
    pwlib   https://pamelaproject.com/svn/pw/pwcommon/trunk/pwlib
    legal   https://pamelaproject.com/svn/pw/pwcommon/trunk/legal
    
  • run svn update and test that the pwlib and legal directories are added in the right place:
    # svn update
    
    Fetching external item into 'pwlib'
    A    pwlib/utils.pwlib.php
    
    ... (deleted for brevity)
    
    A    pwlib/processing.pwlib.php
    Updated external to revision 123.
    
    
    Fetching external item into 'legal'
    A    legal/LICENSE
    A    legal/CONTRIBUTORS
    Updated external to revision 123.
    
    Updated to revision 1.
    root@ubuntu:/tmp/pwmw# 
    
  • If the files are put into the right place, then run svn commit
    # ls
    legal  pwlib
    # svn commit -m "Added PW common code to pwmw plugin"
    Sending        .
    
    Committed revision 2.