Changes between Version 1 and Version 2 of MapServerReleasePackagingHowTo


Ignore:
Timestamp:
Mar 8, 2009, 6:49:24 AM (15 years ago)
Author:
dmorissette
Comment:

Added build_package.sh

Legend:

Unmodified
Added
Removed
Modified
  • MapServerReleasePackagingHowTo

    v1 v2  
    11= MapServer Release Packaging !HowTo =
     2
     3== Step by step release packaging instructions ==
    24
    351. Make sure the source builds and works locally
     
    104106         https://svn.osgeo.org/mapserver/branches/branch-5-2/msautotest/
    105107}}}
     108
     109== build_package.sh script ==
     110
     111Here is what the build_package.sh script looked like as of this writing. The version on upload.osgeo.org is the master:
     112
     113{{{
     114#!/bin/sh
     115
     116PATH=/usr/local/bin:$PATH
     117
     118cd /osgeo/mapserver
     119
     120##
     121## Check command args
     122##
     123
     124if [ "$1" = "-q" ] ; then
     125  QUIET=1
     126  shift
     127else
     128  QUIET=0
     129fi
     130
     131VERSION=$1
     132SVNPATH=$2
     133
     134if [ -z "$VERSION" -o -z "$SVNPATH" ] ; then
     135  echo "Usage: $0 [-q] <version> <svnpath>"
     136  echo ""
     137  echo "e.g."
     138  echo "  $0 5.0.0 https://svn.osgeo.org/mapserver/tags/rel-5-0-0/mapserver"
     139  echo "or"
     140  echo "  $0 nightly https://svn.osgeo.org/mapserver/trunk/mapserver"
     141  echo ""
     142  exit
     143fi
     144
     145ARCHIVE=mapserver-$VERSION.tar.gz
     146BASEDIR=mapserver-$VERSION
     147
     148if [ "$QUIET" = "0" ] ; then
     149  echo "Packaging $ARCHIVE using $SVNPATH"
     150fi
     151
     152##
     153## Build the actual package
     154##
     155
     156svn export -q $SVNPATH $BASEDIR
     157
     158cd $BASEDIR
     159
     160rm -rf gdft
     161
     162cd mapscript/perl
     163swig -perl5 -shadow -outdir . -o mapscript_wrap.c ../mapscript.i >& /dev/null
     164
     165cd ../python
     166swig -python -shadow -outdir . -o mapscript_wrap.c ../mapscript.i
     167
     168cd ../csharp
     169swig -csharp -o mapscript_wrap.c ../mapscript.i
     170
     171cd ../java
     172
     173cd ../tcl
     174
     175cd ../../..
     176
     177tar czf $ARCHIVE $BASEDIR
     178
     179##
     180## And cleanup
     181##
     182
     183rm -rf $BASEDIR
     184}}}