[med-svn] r6046 - trunk/packages/transtermhp/trunk/debian
Andreas Tille
tille at alioth.debian.org
Mon Feb 21 18:02:28 UTC 2011
Author: tille
Date: 2011-02-21 18:02:20 +0000 (Mon, 21 Feb 2011)
New Revision: 6046
Added:
trunk/packages/transtermhp/trunk/debian/get-orig-source
Modified:
trunk/packages/transtermhp/trunk/debian/rules
trunk/packages/transtermhp/trunk/debian/watch
Log:
Removed useless template comment from rules and watch; provide get-orig-source target to enable clean upstream source
Added: trunk/packages/transtermhp/trunk/debian/get-orig-source
===================================================================
--- trunk/packages/transtermhp/trunk/debian/get-orig-source (rev 0)
+++ trunk/packages/transtermhp/trunk/debian/get-orig-source 2011-02-21 18:02:20 UTC (rev 6046)
@@ -0,0 +1,24 @@
+#!/bin/sh
+# script to download and repack source package of transtermhp
+# this is needed because it is in ZIP format.
+# Once we are repackaging we can also strip useless binaries.
+
+PKG=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
+VERSION=`uscan --verbose --force-download | \
+ grep "Newest version on remote site is .* local version is .*" | \
+ head -n 1 | \
+ sed "s/Newest version on remote site is \([-0-9.]\+\),.*/\1/"`
+
+mkdir -p ../tarballs
+cd ../tarballs
+
+UPSTREAMNAME=transterm_hp
+UPSTREAMDIR="${UPSTREAMNAME}_v${VERSION}"
+unzip ../${UPSTREAMDIR}.zip
+
+# Once we need to repack the zip archive anyway we can remove useless
+# binaries which are included
+rm -f ${UPSTREAMDIR}/2ndscore ${UPSTREAMDIR}/transterm
+
+GZIP="--best --no-name" tar -czf "$PKG"_"$VERSION".orig.tar.gz "${UPSTREAMDIR}"
+rm -rf "${UPSTREAMDIR}"
Modified: trunk/packages/transtermhp/trunk/debian/rules
===================================================================
--- trunk/packages/transtermhp/trunk/debian/rules 2011-02-21 17:27:20 UTC (rev 6045)
+++ trunk/packages/transtermhp/trunk/debian/rules 2011-02-21 18:02:20 UTC (rev 6046)
@@ -1,14 +1,6 @@
#!/usr/bin/make -f
-# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-#
-# This file was originally written by Joey Hess and Craig Small.
-# As a special exception, when this file is copied by dh-make into a
-# dh-make output file, you may use that output file without restriction.
-# This special exception was added by Craig Small in version 0.37 of dh-make.
-#
-# Modified to make a template file for a multi-binary package with separated
-# build-arch and build-indep targets by Bill Allombert 2001
+# debian/rules for transtermhp
+# Author: Alex Mestiashvili <alex at biotec.tu-dresden.de>
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
@@ -23,3 +15,6 @@
# test: target in Makefile is broken.
# don't forget to notify upstream .
override_dh_auto_test:
+
+get-orig-source:
+ . debian/get-orig-source
Modified: trunk/packages/transtermhp/trunk/debian/watch
===================================================================
--- trunk/packages/transtermhp/trunk/debian/watch 2011-02-21 17:27:20 UTC (rev 6045)
+++ trunk/packages/transtermhp/trunk/debian/watch 2011-02-21 18:02:20 UTC (rev 6046)
@@ -1,9 +1,3 @@
-# Example watch control file for uscan
-# Rename this file to "watch" and then you can run the "uscan" command
-# to check for upstream updates and more.
-# See uscan(1) for format
-
-# Compulsory line, this is a version 3 file
version=3
http://transterm.cbcb.umd.edu/transterm_hp_v(.*)\.zip
More information about the debian-med-commit
mailing list