aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gpg-remailer/avoid-gnuisms.patch
blob: 3e189be49a266ccb0329ad6968ced2f3e3e47fed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- a/icmake/installer
+++ b/icmake/installer
@@ -5,14 +5,14 @@
     exit 0
 fi
 
-for src in `find -mindepth 1 -type d`           # create missing target dirs
+for src in `find . -mindepth 1 -type d`           # create missing target dirs
 do
     [ ! -e $1$src ] && mkdir -p $1$src
 done
 
-for file in `find -type f -or -type l`
+for file in `find . -type f -or -type l`
 do
     # echo installing $1$file
-    cp -d --preserve=timestamps $file $1$file
+    cp -H $file $1$file
 done
 
--- a/icmake/findall
+++ b/icmake/findall
@@ -15,7 +15,7 @@
     if (pattern != "")
         pattern = "-name '" + pattern + "'";
 
-    entries = backtick(cmd + " " + pattern + " -printf \"%f\\n\"");
+    entries = backtick(cmd + " " + pattern + " -exec basename {} \\;");
 
     for (idx = listlen(entries); idx--; )
         ret += (list)cutEoln(entries[idx]);