aboutsummaryrefslogtreecommitdiff
path: root/buildtools/trang-not-found
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2012-12-01 01:50:06 +0000
committerRob Austein <sra@hactrn.net>2012-12-01 01:50:06 +0000
commit0be1f96b74661d30bf26d50323e31fe68e5ae916 (patch)
tree07ef114ff9a9622d449c5d430fe35576f29b71d7 /buildtools/trang-not-found
parent5a1c4d5c20455bf3e8276cca7f56197c5007261b (diff)
Every other platform puts touch in /usr/bin, but Red Hat is too
special for that. Closes #359. svn path=/trunk/; revision=4925
Diffstat (limited to 'buildtools/trang-not-found')
-rwxr-xr-xbuildtools/trang-not-found11
1 files changed, 10 insertions, 1 deletions
diff --git a/buildtools/trang-not-found b/buildtools/trang-not-found
index acbccf5b..56574ea8 100755
--- a/buildtools/trang-not-found
+++ b/buildtools/trang-not-found
@@ -17,4 +17,13 @@ Suppressing this warning for file: $2
EOF
-/usr/bin/touch "$2"
+# You can thank Red Hat for the following silliness.
+
+for touch in /usr/bin/touch /bin/touch
+do
+ if /bin/test -x $touch
+ then
+ $touch "$2"
+ exit
+ fi
+done