diff options
Diffstat (limited to 'misc/makellib')
| -rwxr-xr-x | misc/makellib | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/misc/makellib b/misc/makellib index fb3d3b7a92fd..04d99fe9ebdf 100755 --- a/misc/makellib +++ b/misc/makellib @@ -1,6 +1,6 @@ #!/bin/sh ############################################################################## -# Copyright 2020,2021 Thomas E. Dickey # +# Copyright 2020-2021,2025 Thomas E. Dickey # # Copyright 1998,2000 Free Software Foundation, Inc. # # # # Permission is hereby granted, free of charge, to any person obtaining a # @@ -30,7 +30,7 @@ # # Author: Thomas E. Dickey 1996,1997,2000 # -# $Id: makellib,v 1.11 2021/09/04 15:49:38 tom Exp $ +# $Id: makellib,v 1.12 2025/06/14 14:44:56 tom Exp $ # System-dependent wrapper for 'lint' that creates a lint-library via the # following method (XXX is the name of the library): # a. If the file llib-lXXX doesn't exist, create it using the make-rule @@ -52,7 +52,7 @@ # $* = C-preprocessor options # ARCH=`uname -s` -if test "x$ARCH" = "xSunOS" ; then +if [ "$ARCH" = "SunOS" ] ; then case `uname -r` in 5.*) ARCH=Solaris ;; @@ -64,7 +64,7 @@ OPT="" LLIB="" llib="" # -while test $# != 0 +while [ $# != 0 ] do case $1 in -L*) @@ -74,7 +74,7 @@ do OPT="$OPT $1" ;; *) - if test -z "$LLIB" + if [ -z "$LLIB" ] then LLIB=$1 else @@ -85,16 +85,16 @@ do shift done -if test -z "$LLIB" +if [ -z "$LLIB" ] then echo '? no library name specified' exit 1 -elif test -z "$llib" +elif [ -z "$llib" ] then llib="llib-l$LLIB" fi -if test ! -f "$llib" ; then +if [ ! -f "$llib" ] ; then if ( make "$llib" ) then : @@ -142,16 +142,16 @@ UNIX_SV) exit 1 esac -echo OPT "$OPT" -echo TARGET "$TARGET" -echo LIBNAME "$llib" +echo "OPT $OPT" +echo "TARGET $TARGET" +echo "LIBNAME $llib" if ( lint "$CREATE" "$OPT" "$TARGET" ) then - if test -f "$llib.ln" + if [ -f "$llib.ln" ] then for p in $HOME/lib $HOME/lib/$ARCH $HOME/lib/$ARCH/lint do - if test ! -d "$p" + if [ ! -d "$p" ] then mkdir "$p" fi @@ -163,6 +163,6 @@ then rm -f "$llib.ln" fi fi -if test "x$TARGET" = "x$llib.c" ; then +if [ "$TARGET" = "$llib.c" ] ; then rm -f "$TARGET" fi |
