[Pkg-javascript-commits] [datatables-extensions] 03/17: Remove binary swf file and code that is using this flash file

Andreas Tille tille at debian.org
Wed Jan 3 07:44:01 UTC 2018


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository datatables-extensions.

commit a9b05184de792526c5a0ca9f170a47cb07685a6b
Author: Andreas Tille <tille at debian.org>
Date:   Tue Jan 2 15:10:34 2018 +0100

    Remove binary swf file and code that is using this flash file
---
 debian/changelog       | 2 +-
 debian/copyright       | 1 +
 debian/get-orig-source | 7 ++++---
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 930cfa3..77ea375 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-datatables-extensions (0.0+20150910-1) UNRELEASED; urgency=medium
+datatables-extensions (0.0+20150910+dfsg-1) UNRELEASED; urgency=medium
 
   * Initial release (Closes: #???)
 
diff --git a/debian/copyright b/debian/copyright
index d714f03..397e541 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -3,6 +3,7 @@ Upstream-Name: Datatables Extensions
 Upstream-Contact: SpryMedia
                   https://datatables.net/contact
 Source: http://www.datatables.net/license
+Files-Excluded: */buttons.flash* *.swf
 
 Files: *
 Copyright: 2008-2015 SpryMedia Limited
diff --git a/debian/get-orig-source b/debian/get-orig-source
index 223f5d1..26c9b69 100755
--- a/debian/get-orig-source
+++ b/debian/get-orig-source
@@ -3,8 +3,9 @@
 COMPRESS=xz
 
 NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
-MVERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/^\([0-9\.]\+\)[+~][-0-9]\+$/\1/'`
+MVERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed -e 's/+dfsg//' -e 's/^\([0-9\.]\+\)[+~][-0-9]\+$/\1/'`
 
+CURDIR=$(pwd)
 mkdir -p ../tarballs
 cd ../tarballs
 # need to clean up the tarballs dir first because upstream tarball might
@@ -12,14 +13,14 @@ cd ../tarballs
 rm -rf *
 git clone --quiet https://github.com/etd-framework/datatables-extensions
 cd $NAME
-VERSION=${MVERSION}+`date -d @$(git show --format="%at" | head -n1) +%Y%m%d`
+VERSION=${MVERSION}+`date -d @$(git show --format="%at" | head -n1) +%Y%m%d`+dfsg
 # for esthetical reasons set file timestamps (if git-restore-mtime is installed)
 git restore-mtime || true
 cd ..
 TARDIR=${NAME}-${VERSION}
 mv ${NAME} ${TARDIR}
 rm -rf ${TARDIR}/.git
-rm -f ${TARDIR}/jars/*
+for excl in `grep "^Files-Excluded:" ${CURDIR}/debian/copyright | sed 's/^Files-Excluded: *//'` ; do find ${TARDIR} -path $excl -delete ; done
 
 GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -caf "$NAME"_"$VERSION".orig.tar.${COMPRESS} "${TARDIR}"
 rm -rf ${TARDIR}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/datatables-extensions.git



More information about the Pkg-javascript-commits mailing list