[DebianGIS-dev] r2704 - in packages/gmt-coast-low/trunk: . debian
frankie at alioth.debian.org
frankie at alioth.debian.org
Wed Feb 17 10:03:43 UTC 2010
Author: frankie
Date: 2010-02-17 10:03:40 +0000 (Wed, 17 Feb 2010)
New Revision: 2704
Added:
packages/gmt-coast-low/trunk/debian/README.Debian
Removed:
packages/gmt-coast-low/trunk/debian/README
Modified:
packages/gmt-coast-low/trunk/GSHHS_coast.tar.bz2
packages/gmt-coast-low/trunk/debian/changelog
packages/gmt-coast-low/trunk/debian/control
packages/gmt-coast-low/trunk/debian/gmt-coastline-download
Log:
Version 2.0.2
Modified: packages/gmt-coast-low/trunk/GSHHS_coast.tar.bz2
===================================================================
(Binary files differ)
Deleted: packages/gmt-coast-low/trunk/debian/README
===================================================================
--- packages/gmt-coast-low/trunk/debian/README 2010-02-16 09:29:30 UTC (rev 2703)
+++ packages/gmt-coast-low/trunk/debian/README 2010-02-17 10:03:40 UTC (rev 2704)
@@ -1,9 +0,0 @@
-Low resolution coast lines for GMT
-----------------------------------
-
-This package installs the low-resolution world coast lines into /usr/share/gmt/coast.
-The high-resolution and full-resolution ones can be downloaded and installed once
-by using the /usr/sbin/gmt-coast-download bash script. The same script can
-be eventually used to re-install or update the coastlines from the
-GMT mirrors.
-
Added: packages/gmt-coast-low/trunk/debian/README.Debian
===================================================================
--- packages/gmt-coast-low/trunk/debian/README.Debian (rev 0)
+++ packages/gmt-coast-low/trunk/debian/README.Debian 2010-02-17 10:03:40 UTC (rev 2704)
@@ -0,0 +1,20 @@
+Low resolution coast lines for GMT
+----------------------------------
+
+ This package installs GSHHS coastline files at low resolution
+ into /usr/share/gmt/coast.
+
+ This package also installs a gmt-coast-download script to get
+ and install high and full coast lines data from one of the available
+ GMT mirrors into the same path /usr/share/gmt/coast.
+
+ Note that occasionally GSHHS files changes their format, so that the latest
+ and greatest available on mirrors *could* be not compatible with old
+ releases of GMT. In those cases, you have to use a suitable mirror and download
+ the last working release for your version. Both GMT and GSHHS files
+ are released at the same date, so the right release can be easily detected.
+ The main upstream archive generally does not retain previous releases, you
+ have to use another mirror!
+
+ -- Francesco Paolo Lovergine <frankie at debian.org> Tue, 17 Feb 2010 21:46:35 +0100
+
Modified: packages/gmt-coast-low/trunk/debian/changelog
===================================================================
--- packages/gmt-coast-low/trunk/debian/changelog 2010-02-16 09:29:30 UTC (rev 2703)
+++ packages/gmt-coast-low/trunk/debian/changelog 2010-02-17 10:03:40 UTC (rev 2704)
@@ -1,10 +1,18 @@
-gmt-coast-low (1:1.10-3) UNRELEASED; urgency=low
+gmt-coast-low (1:2.0.2-1) unstable; urgency=low
+ * New upstream release for GMT 4.5.2+
+ (closes: #569585)
* Set Section to misc as in override file.
* Removed superfluous bash dependency (for helper script).
- * Policy bumped to 3.8.2 without changes.
+ * Policy bumped to 3.8.4 without changes.
+ * Added a README.Debian file which predates NEWS and previous README.
+ (closes: #555987)
+ * Force ownership of files at tar extraction in download script.
+ (closes: #569584)
+ * Now download script allows also version choice.
+ * Added strict version dependency in debian/control on gmt >= 4.5.2.
- -- Francesco Paolo Lovergine <frankie at debian.org> Wed, 24 Jun 2009 14:19:07 +0200
+ -- Francesco Paolo Lovergine <frankie at debian.org> Wed, 17 Feb 2010 10:07:55 +0100
gmt-coast-low (1:1.10-2) unstable; urgency=low
Modified: packages/gmt-coast-low/trunk/debian/control
===================================================================
--- packages/gmt-coast-low/trunk/debian/control 2010-02-16 09:29:30 UTC (rev 2703)
+++ packages/gmt-coast-low/trunk/debian/control 2010-02-17 10:03:40 UTC (rev 2704)
@@ -3,7 +3,7 @@
Priority: extra
Maintainer: Debian GIS Project <pkg-grass-devel at lists.alioth.debian.org>
Uploaders: Torsten Landschoff <torsten at debian.org>, Francesco Paolo Lovergine <frankie at debian.org>
-Standards-Version: 3.8.2
+Standards-Version: 3.8.4
Build-Depends: debhelper (>= 7.0)
Build-Depends-Indep: bzip2
Homepage: http://gmt.soest.hawaii.edu/
@@ -12,7 +12,7 @@
Package: gmt-coast-low
Architecture: all
-Depends: gmt, wget | curl, bzip2
+Depends: gmt (>= 4.5.2), wget | curl, bzip2
Provides: gmt-coastline-data
Description: Low resolution coastlines for the Generic Mapping Tools
This package contains the crude, low and intermediate resolution coastlines
Modified: packages/gmt-coast-low/trunk/debian/gmt-coastline-download
===================================================================
--- packages/gmt-coast-low/trunk/debian/gmt-coastline-download 2010-02-16 09:29:30 UTC (rev 2703)
+++ packages/gmt-coast-low/trunk/debian/gmt-coastline-download 2010-02-17 10:03:40 UTC (rev 2704)
@@ -1,6 +1,6 @@
#!/bin/bash
#
-# Copyright (C) 2008 Francesco P. Lovergine <frankie at debian.org>
+# Copyright (C) 2008-2010 Francesco P. Lovergine <frankie at debian.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2,
@@ -17,7 +17,7 @@
#
usage() {
- echo "usage: $0 [high|full|high-full|low|all]"
+ echo "usage: $0 [high|full|high-full|low|all] [version]"
}
set -e
@@ -28,6 +28,31 @@
fi
#
+# Default is downloading the latest version available.
+#
+VERSION=""
+
+if [ ! -z "$2" ]; then
+ case "$2" in
+ 1.9)
+ ;&
+ 1.10)
+ ;&
+ 2.0)
+ ;&
+ 2.0.1)
+ ;&
+ 2.0.2)
+ VERSION="$2"
+ ;;
+ *)
+ echo "Unknown version $2, assumed correct anyway"
+ VERSION="$2"
+ ;;
+ esac
+fi
+
+#
# Default is downloading both full and high res coast lines.
#
if [ $# -eq 0 ]; then
@@ -75,15 +100,15 @@
for GMT (Generic Mapping Tools) and installs the resulting CDF files under
/usr/share/gmt/coast for use.
- Choose a mirror site (default 1):
+ Choose a mirror site (default 1, * marked sites maintain old versions too):
1) ${MIRROR[1]}
2) ${MIRROR[2]}
- 3) ${MIRROR[3]}
+*3) ${MIRROR[3]}
4) ${MIRROR[4]}
5) ${MIRROR[5]}
6) ${MIRROR[6]}
- 7) ${MIRROR[7]}
+*7) ${MIRROR[7]}
8) ${MIRROR[8]}
EOF
@@ -92,7 +117,7 @@
read -n 1 mirror
case "$mirror" in
- [1-9]) SITE=${MIRROR[$mirror]}
+ [1-8]) SITE=${MIRROR[$mirror]}
;;
*) SITE=${MIRROR[1]}
;;
@@ -107,8 +132,8 @@
TMPDIR=`mktemp -t -d gmt-coast.XXXXXXXX` || exit 3
-URL_HIGH="$SITE/GSHHS_high.tar.bz2"
-URL_FULL="$SITE/GSHHS_full.tar.bz2"
+URL_HIGH="$SITE/GSHHS${VERSION}_high.tar.bz2"
+URL_FULL="$SITE/GSHHS${VERSION}_full.tar.bz2"
if [ -x /usr/bin/wget ]; then
GET_HIGH="wget --progress=bar -O$TMPDIR/GSHHS_high.tar.bz2 $URL_HIGH"
GET_FULL="wget --progress=bar -O$TMPDIR/GSHHS_full.tar.bz2 $URL_FULL"
@@ -118,8 +143,8 @@
fi
fi
-echo $GET_HIGH && $GET_HIGH && tar xjvf $TMPDIR/GSHHS_high.tar.bz2 -C $SHARE_DIR/coast --strip 2 share/coast
-echo $GET_FULL && $GET_FULL && tar xjvf $TMPDIR/GSHHS_full.tar.bz2 -C $SHARE_DIR/coast --strip 2 share/coast
+echo $GET_HIGH && $GET_HIGH && tar xojvf $TMPDIR/GSHHS_high.tar.bz2 -C $SHARE_DIR/coast --strip 2 share/coast
+echo $GET_FULL && $GET_FULL && tar xojvf $TMPDIR/GSHHS_full.tar.bz2 -C $SHARE_DIR/coast --strip 2 share/coast
rm -rf $TMPDIR
More information about the Pkg-grass-devel
mailing list