[PATCH] lib: drop unused shell variables

Pavel Raiskup <[email protected]>
Newsgroups gmane.comp.sysutils.automake.patches
Message-ID <[email protected]>
Detected by ShellCheck.

* lib/depcomp: Drop never used $digits.
* lib/ylwrap: Drop --basedir and $basedir, seems like that was old
C&P error from 210797967a.
---
 lib/depcomp | 1 -
 lib/ylwrap  | 4 ----
 2 files changed, 5 deletions(-)

diff --git a/lib/depcomp b/lib/depcomp
index 65cbf7093..39f728b52 100755
--- a/lib/depcomp
+++ b/lib/depcomp
@@ -113,7 +113,6 @@ nl='
 # These definitions help.
 upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
 lower=abcdefghijklmnopqrstuvwxyz
-digits=0123456789
 alpha=${upper}${lower}
 
 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
diff --git a/lib/ylwrap b/lib/ylwrap
index 5943168da..01cc42870 100755
--- a/lib/ylwrap
+++ b/lib/ylwrap
@@ -66,10 +66,6 @@ case "$1" in
     echo "$0: No files given.  Try '$0 --help' for more information." 1>&2
     exit 1
     ;;
-  --basedir)
-    basedir=$2
-    shift 2
-    ;;
   -h|--h*)
     cat <<\EOF
 Usage: ylwrap [--help|--version] INPUT [OUTPUT DESIRED]... -- PROGRAM [ARGS]...
-- 
2.17.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.