Ask a Question | Search PSRCHIVE: |
Home
|
PSRCHIVE: switching to SourceForgeIntroductionThis web-page is intended to help those with Swinburne CVS access to soft_swin continue to develop in parallel with the PSRCHIVE software hosted at SourceForge. Please read this page completely before following its instructions.Step One: Don't PanicThe Standard Makefile Scheme is once again used to compile the software in the Swinburne CVS repository. As a result, it will be necessary to clean out the old GNU autotools files from soft_swin. It may also be necessary to merge your changes from soft_swin with the SourceForge distribution. These instructions will help.Step Two: Install the NewMost pulsar software developers at Swinburne and ATNF will have set the $CVSHOME and $LOGIN_ARCH enviroment variables. It is strongly recommended that you:
cd $CVSHOME setenv CONFIG_SITE $CVSHOME/psrchive/config/cvshomethen checkout and build PSRCHIVE as described in the CVS Access Instructions. If you plan to continue doing most of your development in $CVSHOME, then you should set the $CONFIG_SITE environment variable in your .cshrc file:
For more information on choosing and setting the installation directory,
please read the Installation
Directory notes.
Step Three: Clean up the OldTo clean up the old Swinburne repository and continue developing where you left off, run the following commands:cd $CVSHOME/soft_swin make distclean cvs update autoclean sfmerge ./autoclean cvs update -AP |& tee update.logThe make distclean step may fail if you have previously run cvs update in soft_swin. Don't worry about it; the autoclean script will clean up whatever autotools-generated files are left behind. Step Four: Merge Any ModificationsThe cvs update performed in the previous step may have produced some conflicts. For example:grep conflict update.log cvs update: conflict: `psrchive/SquareWave.C' is modified but no longer in the repository C psrchive/SquareWave.CThis message means that a modified file has been moved to SourceForge. Continuing the example, run cvs diff psrchive/SquareWave.Cto determine the nature of the modifications and decide if they should be merged with the SourceForge distribution. To merge the changes, use the sfmerge script, as in the following example: ./sfmerge $CVSHOME/psrchive psrchive/SquareWave.C Merging psrchive/SquareWave.C into /psr/cvshome/wvanstra/psrchive/More/General/SquareWave.CAfter merging any modifications, you may need to rebuild PSRCHIVE. Step Five: CompileJust run make.If you have any difficulties with compiling, please contact Willem.
|