automake-commit
[Top][All Lists]
Advanced

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

[automake-commit] 01/02: lib: drop unused shell variables


From: Mike Frysinger
Subject: [automake-commit] 01/02: lib: drop unused shell variables
Date: Wed, 19 Jan 2022 00:19:16 -0500

vapier pushed a commit to branch master
in repository automake.

View the commit online:
https://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=5fefc4a67823c585ba1cd4654feaf21af4bde113

commit 5fefc4a67823c585ba1cd4654feaf21af4bde113
Author: Pavel Raiskup <praiskup@redhat.com>
AuthorDate: Mon Jul 30 15:02:35 2018 +0200

    lib: drop unused shell variables
    
    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 0a06045b6..75323b739 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 f76e6cfe2..6700349be 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]...



reply via email to

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