[SCM] TRMM Radar Software Library branch, master, updated. upstream/1.41-14-gf3fc3d9

Andy Spencer andy753421 at gmail.com
Sun Jul 31 23:26:33 UTC 2011


The following commit has been merged in the master branch:
commit 29f637d4cd34f21481410f6ceccf66914a93b466
Author: Andy Spencer <andy753421 at gmail.com>
Date:   Sun Jul 31 22:54:11 2011 +0000

    Add scripts to repackage tarball
    
    This removes the edge functions because they are non-free

diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..e951ce2
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+VER=$2 # e.g. 1.42 
+OLD=$3 # e.g. ../librsl_1.42.orig.tar.gz 
+NEW=${OLD/orig/dfsg.orig}
+DIR=rsl-v$VER
+
+# Extract old tar
+tar -xzf $OLD
+
+# Remove non-free functions
+cat > $DIR/edge_to_radar.c <<-EOF
+	#include "rsl.h"
+	Radar *RSL_EDGE_to_radar(char *f)
+	{
+	  fprintf(stderr, "%s",
+	    "The RSL interface to load EDGE files and the\n"
+	    "corresponding ETOR library are not GPL compatible\n"
+	    "and have been removed from this version\n");
+	  return NULL;
+	}
+EOF
+
+# Create new tar
+tar -czf $NEW $DIR
+
+# Cleanup
+rm -rf $DIR
diff --git a/debian/watch b/debian/watch
index dbe0131..60e90d9 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,2 +1,4 @@
 version=3
-ftp://trmm-fc.gsfc.nasa.gov/software/rsl-v([\d.]+)\.tar.gz
+opts="dversionmangle=s/\.dfsg//" \
+ ftp://trmm-fc.gsfc.nasa.gov/software/rsl-v([\d.]+)\.tar.gz \
+  debian debian/orig-tar.sh

-- 
TRMM Radar Software Library



More information about the debian-science-commits mailing list