summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarryl L. Pierce <mcpierce@apache.org>2012-11-27 18:08:13 +0000
committerDarryl L. Pierce <mcpierce@apache.org>2012-11-27 18:08:13 +0000
commit37184e1e954ffeb283fa09d3ca5159e4b94aec98 (patch)
tree441cc80c3cf061f06477db555d55ff78e3c6b80e
parent5b713d4557bbe6abd7cbefa05f9a3e67fa9325cd (diff)
downloadqpid-python-37184e1e954ffeb283fa09d3ca5159e4b94aec98.tar.gz
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. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1414298 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-xqpid/bin/release.sh25
1 files changed, 24 insertions, 1 deletions
diff --git a/qpid/bin/release.sh b/qpid/bin/release.sh
index b0e7ffa0d3..9189cd3cf3 100755
--- a/qpid/bin/release.sh
+++ b/qpid/bin/release.sh
@@ -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