summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-12-17 22:55:55 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-12-17 22:55:55 +0000
commitcdff8787bdff3ba6204e796992f6952b194725bc (patch)
tree9cc63af23eb3be79df903352498526a7b49bd47f
parent3c5004b4b5f40c7cf13538f981fa94c5ba49f53b (diff)
downloadATCD-cdff8787bdff3ba6204e796992f6952b194725bc.tar.gz
try /bin/find if /usr/bin/find doesn't exist
-rwxr-xr-xbin/create_ace_build12
1 files changed, 10 insertions, 2 deletions
diff --git a/bin/create_ace_build b/bin/create_ace_build
index 52a1348afff..9dc092b91ba 100755
--- a/bin/create_ace_build
+++ b/bin/create_ace_build
@@ -88,6 +88,14 @@ $build = $ARGV[0];
$build =~ s%^build/%%; #### remove leading "build/", if any
$build = "build/$build";
+if (-e '/usr/bin/find') {
+ $find = '/usr/bin/find';
+} elsif (-e '/bin/find') {
+ $find = '/bin/find';
+} else {
+ $find = '/find';
+}
+
####
#### check that we're in an ACE "top level" directory
####
@@ -103,7 +111,7 @@ $build = "build/$build";
####
#### Get all ACE plain file and directory names.
####
-@files = ( `/usr/bin/find . -name CVS -prune \\\
+@files = ( `$find . -name CVS -prune \\\
-o -name build -prune -o \\\
-name '.*obj' -prune -o -name Templates.DB -prune -o \\\
\\( ! -type l ! -name core ! -name '*.state' ! -name '*.so' \\\
@@ -147,7 +155,7 @@ foreach $file ( @files ) {
####
#### Find all the symlinks in the build directory
####
-open (LINKS, "find $build -type l |") ||
+open (LINKS, "$find $build -type l |") ||
die "$0 cannot find symlinks in $build\n";
while (<LINKS>) {