]> birchwood-abbey.net Git - mit-scheme.git/commitdiff
Use find -maxdepth rather than find -depth for portability.
authorChris Hanson <org/chris-hanson/cph>
Wed, 24 Jun 2020 06:37:37 +0000 (23:37 -0700)
committerChris Hanson <org/chris-hanson/cph>
Wed, 24 Jun 2020 06:38:51 +0000 (23:38 -0700)
src/Tags.sh
src/etc/Tags.sh

index a42a1f1dbff9115b0d0ec5c14e71a8a0f4af4168..e5983f759fa6b90b79f024305e2aaed47eb19d80 100755 (executable)
@@ -44,7 +44,7 @@ function excluded_dir ()
     return 1
 }
 
-ALL_SUBDIRS=($(find * -type d -depth 0))
+ALL_SUBDIRS=($(find * -maxdepth 0 -type d))
 SUBDIRS=()
 
 for SUBDIR in "${ALL_SUBDIRS[@]}"; do
index 929f097198a364a0494ceb4a4e01557ed05a4ba7..dd9c69f25e21daa6241085c69e09ded8cb14b64e 100755 (executable)
@@ -27,5 +27,5 @@
 # The working directory must be the build directory.
 
 rm TAGS
-find * -type f \( -name \*.scm -o -name \*.sld -o -name \*.pkg \) -depth 0 -print0 \
-    | xargs -0 etags --append --language=scheme
+find * -maxdepth 0 -type f \( -name \*.scm -o -name \*.sld -o -name \*.pkg \) \
+    -print0 | xargs -0 etags --append --language=scheme