mit-scheme-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

11.0.90: make tags fails


From: Matt Birkholz
Subject: 11.0.90: make tags fails
Date: Tue, 23 Jun 2020 17:19:40 -0700
User-agent: Evolution 3.36.2-0ubuntu1

I could not `make tags` on Ubuntu 20.04 because my find(1) doesn't like
"-depth 0".  I had to change that to "-maxdepth 0" and move the option
to the front of the line.

A patch follows, in the forlorn hope that it will work on other
planets.

diff --git a/src/Tags.sh b/src/Tags.sh
index a42a1f1db..6ea8ed2f0 100755
--- a/src/Tags.sh
+++ b/src/Tags.sh
@@ -28,7 +28,7 @@
 
 set -e
 
-EXCLUDED_DIRS=(etc relnotes tools)
+EXCLUDED_DIRS=(etc relnotes tools autom4te.cache)
 
 function excluded_dir ()
 {
@@ -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
diff --git a/src/etc/Tags.sh b/src/etc/Tags.sh
index 929f09719..be7f75611 100755
--- a/src/etc/Tags.sh
+++ b/src/etc/Tags.sh
@@ -26,6 +26,6 @@
 # Utility to make TAGS file for an MIT/GNU Scheme build directory.
 # The working directory must be the build directory.
 
-rm TAGS
-find * -type f \( -name \*.scm -o -name \*.sld -o -name \*.pkg \)
-depth 0 -print0 \
+rm -f TAGS
+find * -maxdepth 0 \( -name \*.scm -o -name \*.sld -o -name \*.pkg \)
-print0 \
     | xargs -0 etags --append --language=scheme




reply via email to

[Prev in Thread] Current Thread [Next in Thread]