automake-patches
[Top][All Lists]
Advanced

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

[PATCH] lib: drop unused shell variables


From: Pavel Raiskup
Subject: [PATCH] lib: drop unused shell variables
Date: Mon, 30 Jul 2018 15:02:35 +0200

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




reply via email to

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