You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by mc...@apache.org on 2012/11/27 19:08:14 UTC

svn commit: r1414298 - /qpid/trunk/qpid/bin/release.sh

Author: mcpierce
Date: Tue Nov 27 18:08:13 2012
New Revision: 1414298

URL: http://svn.apache.org/viewvc?rev=1414298&view=rev
Log:
QPID-4215 : Adds a target to release.sh to generate Perl language sources.

The --perl | -r cmdline argument generates this file, which includes the
Perl examples as well as the files necessary to generate the language
bindings using Swig.

Modified:
    qpid/trunk/qpid/bin/release.sh

Modified: qpid/trunk/qpid/bin/release.sh
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/bin/release.sh?rev=1414298&r1=1414297&r2=1414298&view=diff
==============================================================================
--- qpid/trunk/qpid/bin/release.sh (original)
+++ qpid/trunk/qpid/bin/release.sh Tue Nov 27 18:08:13 2012
@@ -37,6 +37,7 @@ usage()
     echo "--source|-e : Generate the source artefact"
     echo "--cpp   |-c : Generate the CPP artefacts"
     echo "--java  |-j : Generate the java artefacts"
+    echo "--perl  |-r : Generate the Perl artefacts"
     echo "--python|-p : Generate the python artefacts"
     echo "--wcf   |-w : Generate the WCF artefacts"
     echo "--tools |-t : Generate the tools artefacts"
@@ -53,6 +54,7 @@ all_artefacts()
 
    CPP="CPP"
    JAVA="JAVA"
+   PERL="PERL"
    PYTHON="PYTHON"
    WCF="WCF"
    TOOLS="TOOLS"
@@ -94,6 +96,9 @@ for arg in $* ; do 
  --java|-j)
    JAVA="JAVA"
  ;;
+ --perl|-r)
+   PERL="PERL"
+ ;;
  --python|-p)
    PYTHON="PYTHON"
  ;;
@@ -146,7 +151,7 @@ echo REV:$REV
 echo VER:$VER
 
 # If nothing is specified then do it all
-if [ -z "${CLEAN}${PREPARE}${CPP}${JAVA}${PYTHON}${QMF}${TOOLS}${WCF}${SOURCE}${SIGN}${UPLOAD}" ] ; then
+if [ -z "${CLEAN}${PREPARE}${CPP}${JAVA}${PERL}${PYTHON}${QMF}${TOOLS}${WCF}${SOURCE}${SIGN}${UPLOAD}" ] ; then
    PREPARE="PREPARE"
    all_artefacts
    SIGN="SIGN"
@@ -184,6 +189,24 @@ if [ "SOURCE" == "$SOURCE" ] ; then
   tar -czf artifacts/qpid-${VER}.tar.gz qpid-${VER}
 fi
 
+if [ "PERL" == "$PERL" ]; then
+  pushd qpid-${VER}/cpp/bindings/qpid
+  make
+  popd
+  mkdir qpid-${VER}/perl-qpid-${VER}
+  cp qpid-${VER}/cpp/bindings/qpid/perl/perl.i \
+     qpid-${VER}/cpp/bindings/qpid/perl/*pm \
+     qpid-${VER}/cpp/bindings/qpid/perl/LICENSE \
+     qpid-${VER}/cpp/bindings/qpid/perl/Makefile.PL \
+     qpid-${VER}/perl-qpid-${VER}
+  mkdir qpid-${VER}/perl-qpid-${VER}/examples
+  cp qpid-${VER}/cpp/bindings/qpid/examples/perl/* \
+     qpid-${VER}/perl-qpid-${VER}/examples
+  pushd qpid-${VER}
+  tar -czf ../artifacts/perl-qpid-${VER}.tar.gz perl-qpid-${VER}
+  popd
+fi
+
 if [ "PYTHON" == "$PYTHON" ] ; then
   tar -czf artifacts/qpid-python-${VER}.tar.gz qpid-${VER}/python qpid-${VER}/specs
 fi



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org