Message ID | 1454555429-25692-1-git-send-email-ricardo.salveti@linaro.org |
---|---|
State | New |
Headers | show |
this sounds reasonable to me, but I am not a packaging wiz On 3 February 2016 at 22:10, Ricardo Salveti <ricardo.salveti@linaro.org> wrote: > Allow the user to easily produce and use the source package when the > binary build is not desired (e.g. to be uploaded in extra > repositories). > > Signed-off-by: Ricardo Salveti <ricardo.salveti@linaro.org> > --- > scripts/builddeb | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > > diff --git a/scripts/builddeb b/scripts/builddeb > index 829fd1d..979a920 100755 > --- a/scripts/builddeb > +++ b/scripts/builddeb > @@ -23,6 +23,14 @@ if [ $(egrep "\.([a-z0-9]{8}\>|dirty)" .scmversion |wc > -l) -gt 0 ]; then > dch --newversion ${version}-1 --urgency low "not a official > release!" > fi > > -debuild -us -uc > +# debuild default options > +DEB_OPTS="-us -uc" > + > +# Also allow the user to create just the source package (skip build > process) > +if [ "$1" == source ]; then > + DEB_OPTS="-S $DEB_OPTS" > +fi > + > +debuild $DEB_OPTS > popd > popd > -- > 2.5.0 > > _______________________________________________ > lng-odp mailing list > lng-odp@lists.linaro.org > https://lists.linaro.org/mailman/listinfo/lng-odp > -- Mike Holmes Technical Manager - Linaro Networking Group Linaro.org <http://www.linaro.org/> *│ *Open source software for ARM SoCs "Work should be fun and collborative, the rest follows"
diff --git a/scripts/builddeb b/scripts/builddeb index 829fd1d..979a920 100755 --- a/scripts/builddeb +++ b/scripts/builddeb @@ -23,6 +23,14 @@ if [ $(egrep "\.([a-z0-9]{8}\>|dirty)" .scmversion |wc -l) -gt 0 ]; then dch --newversion ${version}-1 --urgency low "not a official release!" fi -debuild -us -uc +# debuild default options +DEB_OPTS="-us -uc" + +# Also allow the user to create just the source package (skip build process) +if [ "$1" == source ]; then + DEB_OPTS="-S $DEB_OPTS" +fi + +debuild $DEB_OPTS popd popd
Allow the user to easily produce and use the source package when the binary build is not desired (e.g. to be uploaded in extra repositories). Signed-off-by: Ricardo Salveti <ricardo.salveti@linaro.org> --- scripts/builddeb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)