[hdf4] 02/06: Copy sources using own bash script
Johan Van de Wauw
johanvdw-guest at moszumanska.debian.org
Fri Sep 5 23:22:05 UTC 2014
This is an automated email from the git hooks/post-receive script.
johanvdw-guest pushed a commit to branch master
in repository hdf4.
commit c681dc04246a6b1f4bccf557ed09864764d7490e
Author: Johan Van de Wauw <johan.vandewauw at gmail.com>
Date: Fri Sep 5 22:09:13 2014 +0200
Copy sources using own bash script
Before I copied sources using rsync as a dash workaround.
Now I'm using a bash script as suggested by Frankie
This way rsync is no longer needed as a build dependency.
---
debian/control | 1 -
debian/copysources.sh | 4 ++++
debian/rules | 5 +----
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/debian/control b/debian/control
index d93a527..36788ea 100644
--- a/debian/control
+++ b/debian/control
@@ -14,7 +14,6 @@ Build-Depends: debhelper (>= 9),
quilt,
chrpath,
gfortran,
- rsync,
libtool,
autoconf,
automake
diff --git a/debian/copysources.sh b/debian/copysources.sh
new file mode 100755
index 0000000..760f430
--- /dev/null
+++ b/debian/copysources.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+shopt -s extglob
+cp -a !(debian|HDF$1) HDF$1
+cp -a HDF$1 HDF4_ALT
diff --git a/debian/rules b/debian/rules
index 67d94d8..c1038f2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -39,10 +39,7 @@ binary: debian/control binary-indep binary-arch
stamps/unpack-stamp: debian/control
dh_testdir
mkdir HDF$(RELEASE)
-#does not work using dash
-# cp -a !(debian|HDF$(RELEASE)) HDF$(RELEASE)
- rsync -a --exclude debian --exclude HDF$(RELEASE) . HDF$(RELEASE)
- cp -a HDF$(RELEASE) HDF4_ALT
+ bash debian/copysources.sh $(RELEASE)
mkdir -p stamps
touch $@
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/hdf4.git
More information about the Pkg-grass-devel
mailing list