On 01/09/16 13:59, Allan McRae wrote:
> On 01/09/16 07:05, Gordian Edenhofer wrote:
>> Signed-off-by: Gordian Edenhofer <[email protected]>
>> ---
>>  contrib/bacman.sh.in | 33 +++++++++++++++++++++------------
>>  1 file changed, 21 insertions(+), 12 deletions(-)
>>
> 
> The format for the header is the same for all scripts in the pacman
> codebase.  Do not change the format. You may add examples onto the end.
> 
> 
>> diff --git a/contrib/bacman.sh.in b/contrib/bacman.sh.in
>> index a0bfcf1..ca2945f 100644
>> --- a/contrib/bacman.sh.in
>> +++ b/contrib/bacman.sh.in
>> @@ -41,25 +41,33 @@ clean_up() {
>>      echo
>>      exit
>>  }
>> -
>>  # Trap termination signals
>>  trap clean_up SIGHUP SIGINT SIGTERM
>>  
>>  # Print usage information
>>  usage() {
>> -    echo "${myname} (pacman) v${myver}"
>> -    echo
>> -    echo "Recreate a package using pacman's database and system files"
>> -    echo
>> -    echo "Usage: ${myname} [--nocolor] [--pacnew] <installed package name>"
>> -    echo
>> -    echo "Example: ${myname} linux-headers"
>> +    cat <<-EOF
>> +    $myname (pacman) v$myver
>> +    This script was design to reassemble installed packages from its 
>> deliverd files.
> 
> Typo
> 
>> +    It comes in handy if you have no access to an up-to-date package cache.
>> +
>> +    Usage: $myname [options] <package(s)>
>> +        -h, --help              display this help message and exit
>> +        --nocolor               turn off color in output
>> +        --pacnew                package .pacnew files
>> +
>> +    Examples:   # $myname linux-headers
>> +                # $myname gzip munge binutils -o ~/Downloads

Also, the -o option does not exist at this point.

Reply via email to