[Python-modules-commits] r16004 - in packages/pdfminer/trunk/debian (3 files)
jwilk at users.alioth.debian.org
jwilk at users.alioth.debian.org
Sat Mar 5 17:30:55 UTC 2011
Date: Saturday, March 5, 2011 @ 17:30:51
Author: jwilk
Revision: 16004
* Remove byte-compiled files from (repackaged) upstream tarball.
* Use $() constructs rather than backticks in shell scripts.
* Rename some private variables in debian/rules to make them lowercase.
Modified:
packages/pdfminer/trunk/debian/changelog
packages/pdfminer/trunk/debian/get-orig-source.sh
packages/pdfminer/trunk/debian/rules
Modified: packages/pdfminer/trunk/debian/changelog
===================================================================
--- packages/pdfminer/trunk/debian/changelog 2011-03-05 15:37:43 UTC (rev 16003)
+++ packages/pdfminer/trunk/debian/changelog 2011-03-05 17:30:51 UTC (rev 16004)
@@ -4,8 +4,11 @@
+ Document the -V option in pdf2txt manual page.
* Correct a few grammatical errors in the manual pages and in the package
description. Thanks to Stefano Rivera for help.
+ * Remove byte-compiled files from (repackaged) upstream tarball.
+ * Use $() constructs rather than backticks in shell scripts.
+ * Rename some private variables in debian/rules to make them lowercase.
- -- Jakub Wilk <jwilk at debian.org> Sun, 27 Feb 2011 14:44:08 +0100
+ -- Jakub Wilk <jwilk at debian.org> Sat, 05 Mar 2011 18:29:19 +0100
pdfminer (20101226+dfsg-1) experimental; urgency=low
Modified: packages/pdfminer/trunk/debian/get-orig-source.sh
===================================================================
--- packages/pdfminer/trunk/debian/get-orig-source.sh 2011-03-05 15:37:43 UTC (rev 16003)
+++ packages/pdfminer/trunk/debian/get-orig-source.sh 2011-03-05 17:30:51 UTC (rev 16004)
@@ -1,21 +1,23 @@
set -e
export TAR_OPTIONS="--owner root --group root --mode a+rX"
export GZIP="-9n"
-pwd=`pwd`
+pwd=$(pwd)
version="$1"
if [ -z "$version" ]
then
printf 'Usage: %s <version>\n' "$0"
exit 1
fi
-cd "`dirname "$0"`/../"
-tmpdir=`mktemp -d get-orig-source.XXXXXX`
+cd "$(dirname "$0")/../"
+tmpdir=$(mktemp -d get-orig-source.XXXXXX)
uscan --noconf --force-download --rename --download-version="$version" --destdir="$tmpdir"
cd "$tmpdir"
tar -xzf pdfminer_*.orig.tar.gz
rm *.tar.gz
# Remove test documents without source:
rm -Rf pdfminer-*/samples/nonfree/
+# Remove byte-compiled files
+find pdfminer-* -name '*.py[co]' -delete
mv pdfminer-*/ "pdfminer-$version.orig"
tar -czf "$pwd/pdfminer_$version+dfsg.orig.tar.gz" pdfminer-*.orig/
cd ..
Modified: packages/pdfminer/trunk/debian/rules
===================================================================
--- packages/pdfminer/trunk/debian/rules 2011-03-05 15:37:43 UTC (rev 16003)
+++ packages/pdfminer/trunk/debian/rules 2011-03-05 17:30:51 UTC (rev 16004)
@@ -1,7 +1,7 @@
#!/usr/bin/make -f
-SOURCE_DIR = $(dir $(firstword $(MAKEFILE_LIST)))/..
-UPSTREAM_VERSION = $(shell cd $(SOURCE_DIR) && dpkg-parsechangelog | sed -n -r -e '/^Version: (.+)([+]dfsg).*/ { s//\1/; p; q; }')
+here = $(dir $(firstword $(MAKEFILE_LIST)))/..
+upstream_version = $(shell cd $(here) && dpkg-parsechangelog | sed -n -r -e '/^Version: (.+)([+]dfsg).*/ { s//\1/; p; q; }')
.PHONY: override_dh_auto_build
override_dh_auto_build:
@@ -47,7 +47,7 @@
.PHONY:
get-orig-source:
- sh -x $(SOURCE_DIR)/debian/get-orig-source.sh $(UPSTREAM_VERSION)
+ sh -x $(here)/debian/get-orig-source.sh $(upstream_version)
.PHONY: build build-arch build-indep binary binary-arch binary-indep clean
build build-arch build-indep binary binary-indep clean:
More information about the Python-modules-commits
mailing list