[med-svn] r7470 - trunk/packages/cdbfasta/trunk/debian
Timothy Booth
tbooth-guest at alioth.debian.org
Wed Aug 17 14:49:27 UTC 2011
Author: tbooth-guest
Date: 2011-08-17 14:49:27 +0000 (Wed, 17 Aug 2011)
New Revision: 7470
Added:
trunk/packages/cdbfasta/trunk/debian/get-orig-source
Log:
Added a get-orig-source script to pull the upstream and set the version based on file date.
Added: trunk/packages/cdbfasta/trunk/debian/get-orig-source
===================================================================
--- trunk/packages/cdbfasta/trunk/debian/get-orig-source (rev 0)
+++ trunk/packages/cdbfasta/trunk/debian/get-orig-source 2011-08-17 14:49:27 UTC (rev 7470)
@@ -0,0 +1,13 @@
+#!/bin/bash
+set -u
+set -e
+
+# Get original source and set version based on date
+# Arbitrarily chose Heanet SF mirror
+
+mkdir -vp ../tarballs
+wget -a /dev/stdout -P ../tarballs -N -S http://heanet.dl.sourceforge.net/project/cdbfasta/cdbfasta.tar.gz | tee ../tarballs/wget.log
+
+FILEDATE=`grep '^ Last-Modified: ' ../tarballs/wget.log | cut -b 18- | xargs -0 date +'%Y%m%d' -d`
+
+ln -s tarballs/cdbfasta.tar.gz ../cdbfasta_$FILEDATE.orig.tar.gz
Property changes on: trunk/packages/cdbfasta/trunk/debian/get-orig-source
___________________________________________________________________
Added: svn:executable
+ *
More information about the debian-med-commit
mailing list