libtool
[Top][All Lists]
Advanced

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

a trivial examle


From: Bruce Korb
Subject: a trivial examle
Date: Sat, 12 May 2001 14:07:02 -0700

OK I just commited a change to ltmain.tpl that will cause it to source
lt_exe.tpl.  That template produces output that has more diffs against
the CVS ltmain.in (below).  I made a trivial macro to handle test & exit
logic.  It could easily be moved to a template library and used by any
autogened shell script.  Go get some sleep.  I'm not is a big hurry :-)
Cheers,
        Bruce

4942,4946c4931,4935
<
< if (test -z "$cmd") > /dev/null 2>&1 ; then   $echo "$modename: you must
specify a COMMAND" 1>&2
<   $echo "$help"
<   exit 1
< fi
---
>     if test -z "$cmd"; then
>       $echo "$modename: you must specify a COMMAND" 1>&2
>       $echo "$help"
>       exit 1
>     fi
4960,4965c4949,4954
<
< if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") > /dev/null
2>&1 ; then :
< else   $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
<   $echo "$help"
<   exit 1
< fi
---
>       if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 
> 2>&1; then :
>       else
>         $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
>         $echo "$help" 1>&2
>         exit 1
>       fi
4987,4993c4976,4981
<
< if (test -f "$dir/$objdir/$dlname") > /dev/null 2>&1 ; then :
< else   $echo "$modename: cannot find \`$dlname' in \`$dir' or
\`$dir/$objdir'" 1>&2
<   $echo "$help"
<   exit 1
< fi
<       dir="$dir/$objdir"
---
>       if test -f "$dir/$objdir/$dlname"; then
>         dir="$dir/$objdir"
>       else
>         $echo "$modename: cannot find \`$dlname' in \`$dir' or 
> \`$dir/$objdir'" 1>&2
>         exit 1
>       fi



reply via email to

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