[med-svn] r15156 - trunk/packages/ctn-doc/trunk/debian

Andreas Tille tille at alioth.debian.org
Fri Nov 8 08:56:15 UTC 2013


Author: tille
Date: 2013-11-08 08:56:15 +0000 (Fri, 08 Nov 2013)
New Revision: 15156

Added:
   trunk/packages/ctn-doc/trunk/debian/get-orig-source
Modified:
   trunk/packages/ctn-doc/trunk/debian/changelog
   trunk/packages/ctn-doc/trunk/debian/control
Log:
get-orig-source script to fetch the documents from web server; package belongs to non-free because it contains PDFs without source


Modified: trunk/packages/ctn-doc/trunk/debian/changelog
===================================================================
--- trunk/packages/ctn-doc/trunk/debian/changelog	2013-11-08 08:04:20 UTC (rev 15155)
+++ trunk/packages/ctn-doc/trunk/debian/changelog	2013-11-08 08:56:15 UTC (rev 15156)
@@ -1,3 +1,12 @@
+ctn-doc (3.2.0-1) UNRELEASED; urgency=low
+
+  * New upstream version
+  * debian/get-orig-source: Obtain upstream source
+  * debian/control:
+     - package belongs to non-free since it contains PDFs without source
+
+ -- Andreas Tille <tille at debian.org>  Fri, 08 Nov 2013 09:15:12 +0100
+
 ctn-doc (3.0.6-3) unstable; urgency=low
 
   [ Charles Plessy ]

Modified: trunk/packages/ctn-doc/trunk/debian/control
===================================================================
--- trunk/packages/ctn-doc/trunk/debian/control	2013-11-08 08:04:20 UTC (rev 15155)
+++ trunk/packages/ctn-doc/trunk/debian/control	2013-11-08 08:56:15 UTC (rev 15156)
@@ -1,7 +1,7 @@
 Source: ctn-doc
-Section: doc
-Priority: extra
-Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
+Section: non-free/doc
+Priority: optional
+Maintainer: Debian-Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
 DM-Upload-Allowed: yes
 Uploaders: Andreas Tille <tille at debian.org>
 Build-Depends: debhelper (>= 5)

Added: trunk/packages/ctn-doc/trunk/debian/get-orig-source
===================================================================
--- trunk/packages/ctn-doc/trunk/debian/get-orig-source	                        (rev 0)
+++ trunk/packages/ctn-doc/trunk/debian/get-orig-source	2013-11-08 08:56:15 UTC (rev 15156)
@@ -0,0 +1,30 @@
+#!/bin/sh -e
+# get source for ctn-doc
+
+PKG=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
+VERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)-[0-9]\+$/\1/'`
+URL=http://erl.wustl.edu/research/dicom/docindex.html
+
+rm -rf ../tarballs/${PKG}-${VERSION}
+mkdir -p ../tarballs/${PKG}-${VERSION}
+cd ../tarballs/${PKG}-${VERSION}
+wget -q -N -r -l2 --exclude-directories=aboutus,images,people,publications,scripts,styles ${URL}
+find . -name "*.pdf" -exec mv \{\} . \;
+rm -f rsna2008*.pdf
+find . -name "doc*index.html" -exec mv \{\} . \;
+sed -e '/<meta charset="utf-8" \/>/d' \
+    -e '/<base href="http:\/\/erl.wustl.edu\/" \/>/d' \
+    -e '/<link rel="stylesheet" type="text/,/<\/head>/d' \
+    -e 's#<body.*#</head>\n&#' \
+    -e '/<div id="wrapper">/,/<div id="content">/d' \
+    -e '/Adobe Acrobat Reader/d' \
+    -e 's#documents/ctn/##' \
+    -e '/^[[:space:]]*<\/div>[[:space:]]*$/d' \
+    -e 's#<a href="/sitemap.html">Site Map</a>[[:space:]]*<span class="pipe">|</span>##' \
+    docindex.html > doc_index.html
+rm -f docindex.html
+rm -rf erl.wustl.edu
+cd ..
+
+GZIP="--best --no-name" XZ_OPT="-6v" tar --owner=root --group=root --mode=a+rX -caf "$PKG"_"$VERSION".orig.tar.xz "${PKG}-${VERSION}"
+rm -rf "${PKG}-${VERSION}"


Property changes on: trunk/packages/ctn-doc/trunk/debian/get-orig-source
___________________________________________________________________
Added: svn:executable
   + *




More information about the debian-med-commit mailing list