diff options
author | Rob Austein <sra@hactrn.net> | 2012-12-01 01:50:06 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2012-12-01 01:50:06 +0000 |
commit | 0be1f96b74661d30bf26d50323e31fe68e5ae916 (patch) | |
tree | 07ef114ff9a9622d449c5d430fe35576f29b71d7 /buildtools/trang-not-found | |
parent | 5a1c4d5c20455bf3e8276cca7f56197c5007261b (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-x | buildtools/trang-not-found | 11 |
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 |