Message ID | 1422027750-25541-5-git-send-email-anders.roxell@linaro.org |
---|---|
State | Accepted |
Commit | 06f419775a0da350d1c924c70d4485fd4f37cc3e |
Headers | show |
Yay! Lovely. :-) On Fri, Jan 23, 2015 at 04:42:30PM +0100, Anders Roxell wrote: >Signed-off-by: Anders Roxell <anders.roxell@linaro.org> Reviewed-by: Steve McIntyre <steve.mcintyre@linaro.org> >--- > scripts/builddeb | 27 +++++++++++++++++++++++++++ > 1 file changed, 27 insertions(+) > create mode 100755 scripts/builddeb > >diff --git a/scripts/builddeb b/scripts/builddeb >new file mode 100755 >index 0000000..ddca129 >--- /dev/null >+++ b/scripts/builddeb >@@ -0,0 +1,27 @@ >+#!/bin/bash >+ >+set -e >+ >+ROOT_DIR=$(readlink -e $(dirname $0) | sed 's|/scripts||') >+version=$(${ROOT_DIR}/scripts/odp_version.sh) >+ >+pushd ${ROOT_DIR} >+./bootstrap >+./configure >+make dist >+ >+cp opendataplane-${version}.tar.gz opendataplane_${version}.orig.tar.gz >+tar xzf opendataplane_${version}.orig.tar.gz >+ >+pushd ${ROOT_DIR}/opendataplane-${version} >+cp -r ${ROOT_DIR}/debian . >+ >+current=$(echo ${version} | awk -F . '{printf("%d\n", (($1 * 100) + $2))}') >+rename 's,([^-\.]*)(.*),${1}'"${current}"'${2},' debian/*odp* >+ >+sed -i "s:\(.*odp\)\([^\.]\|$\):\1${current}\2:g" debian/control >+sed -i "s:\(.*odp\)\(.*\):\1${current}\2:g" debian/rules >+ >+debuild -us -uc >+popd >+popd >-- >2.1.4 > > >_______________________________________________ >lng-odp mailing list >lng-odp@lists.linaro.org >http://lists.linaro.org/mailman/listinfo/lng-odp > Cheers,
diff --git a/scripts/builddeb b/scripts/builddeb new file mode 100755 index 0000000..ddca129 --- /dev/null +++ b/scripts/builddeb @@ -0,0 +1,27 @@ +#!/bin/bash + +set -e + +ROOT_DIR=$(readlink -e $(dirname $0) | sed 's|/scripts||') +version=$(${ROOT_DIR}/scripts/odp_version.sh) + +pushd ${ROOT_DIR} +./bootstrap +./configure +make dist + +cp opendataplane-${version}.tar.gz opendataplane_${version}.orig.tar.gz +tar xzf opendataplane_${version}.orig.tar.gz + +pushd ${ROOT_DIR}/opendataplane-${version} +cp -r ${ROOT_DIR}/debian . + +current=$(echo ${version} | awk -F . '{printf("%d\n", (($1 * 100) + $2))}') +rename 's,([^-\.]*)(.*),${1}'"${current}"'${2},' debian/*odp* + +sed -i "s:\(.*odp\)\([^\.]\|$\):\1${current}\2:g" debian/control +sed -i "s:\(.*odp\)\(.*\):\1${current}\2:g" debian/rules + +debuild -us -uc +popd +popd
Signed-off-by: Anders Roxell <anders.roxell@linaro.org> --- scripts/builddeb | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 scripts/builddeb