]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Fix error handling
authorSam Hartman <hartmans@debian.org>
Sat, 26 Jul 2003 22:03:51 +0000 (22:03 +0000)
committerSam Hartman <hartmans@debian.org>
Sat, 26 Jul 2003 22:03:51 +0000 (22:03 +0000)
debian/movefiles

index 11aed291236fbdc5b8bc0ac4ae65e94d33896e56..ebed8ce3898a695f82c1b6f512d3ce4ea99ba5c6 100755 (executable)
@@ -1,14 +1,18 @@
 #!/bin/sh -e
+set -e
 
 
 # This script reads in  a set of lines in the form
 # destination sources
 # andmoves sources to destination
 # destination is relative to the debian directory
+target=`pwd`
+
+cd dest
 
 while read dest srcs ; do
-    mkdir -p debian/$dest ||true
-    for foo in $srcs; do
-       cp -rp  dest/$foo debian/$dest
+    mkdir -p ${target}/debian/$dest ||true
+    for foo in "$srcs"; do
+       cp -rp $foo ${target}/debian/$dest
            done
 done