Changeset - 50e6eb6b9c4d
[Not reviewed]
default
0 5 0
Dennis Fink - 7 years ago 2013-05-19 22:48:40
the_metalgamer@hackerspace.lu
new version 0.3.4
5 files changed with 46 insertions and 29 deletions:
0 comments (0 inline, 0 general)
README.rst
Show inline comments
...
 
@@ -7,20 +7,17 @@ Yet another AUR helper
 
----------------------
 

	
 
:Author:         Dennis Fink <the_metalgamer@hackerspace.lu>
 
:Date:           2013-03-04
 
:Date:           2013-05-19
 
:Copyright:      GPLv3+
 
:Version:        Yaah 0.3.3
 
:Version:        Yaah 0.3.4
 
:Manual section: 8
 
:Manual group:   Yaah Manual
 

	
 
SYNOPSIS
 
========
 

	
 
yaah [options] [packages]
 

	
 
yaah (packages)
 

	
 
yaah -s keyword
 
yaah <packages>...
 
yaah [options] [<packages>]...
 

	
 
DESCRIPTION
 
===========
...
 
@@ -36,10 +33,11 @@ OPTIONS
 

	
 
-h, --help                              Display help.
 
-c, --check                             Check installed, foreign packages, if there are updates available.
 
-d directory, --downloaddir=directory   Download packages to the specified directory.
 
-s, --search                            Search for packages containing specified keyword.
 
-d DIRECTORY, --downloaddir=DIRECTORY   Download packages to the specified directory.
 
-s KEYWORD, --search KEYWORD            Search for packages containing specified keyword.
 
-v, --verbose                           Be more verbose, can be supplied at maximum 2 times.
 
-q, --quiet                             Be less verbose. Takes precedence over -v and --verbose.
 
--version                               Print version information and exit.
 

	
 
EXAMPLES
 
========
man/man8/yaah.8.gz
Show inline comments
 
binary diff not shown
yaah
Show inline comments
 
#!/bin/bash -
 

	
 
#:        Title: yaah - Yet another AUR helper
 
#:     Synopsis: yaah [options] <packages>...
 
#:               yaah (packages)...
 
#:               yaah -s (keyword)
 
#:      Options:
 
#:               -h, --help                             Display help
 
#:        Usage: yaah <packages>...
 
#:               yaag [options] [<packages]...
 
#:      Options: -h, --help                             Display help
 
#:               -c, --check                            Check installed, foreign packages if there are updates available
 
#:               -d DIRECTORY, --downloaddir=DIRECTORY  Download packages to the specified directory
 
#:               -s, --search                           Search for packages containing specified keyword
 
#:               -s KEYWORD, --search KEYWORD           Search for packages containing specified keyword
 
#:               -v, --verbose                          Be more verbose, can be supplied at  maximum 2 times
 
#:               -q, --quiet                            Be less verbose. Takes precedence over -v and --verbose
 
#: Requirements: jshon <http://kmkeen.com/jshon/>
 
#:      Version: 0.3.3
 
#: Requirements: jshon <http://kmkeen.com/jshon/>, pacman, tar, curl
 
#:      Version: 0.3.4
 
#:      Created: 2013-02-26
 
#:     Revision: 2013-05-19
 
#:       Author: Dennis Fink <the_metalgamer@hackerspace.lu>
...
 
@@ -35,7 +33,8 @@ umask $UMASK
 
SCRIPTNAME=${0##*/}
 
DESCRIPTION="Yet another AUR helper"
 
DATE_OF_CREATION=2013-02-26
 
VERSION=0.3.3
 
DATE_OF_REVISION=2013-05-19
 
VERSION=0.3.4
 
AUTHOR="Dennis Fink <the_metalgamer@hackerspace.lu>"
 

	
 
readonly SCRIPTNAME DESCRIPTION DATE_OF_CREATION VERSION AUTHOR
...
 
@@ -390,6 +389,22 @@ download () {
 
}
 

	
 
#=== FUNCTION =================================================================
 
#        Name: version
 
# Description: Prints version information
 
#==============================================================================
 

	
 
version() {
 

	
 
    printf "Scriptname: $SCRIPTNAME
 
Version: $VERSION
 
Description: $DESCRIPTION
 
Author: $AUTHOR
 
Date of creation: $DATE_OF_CREATION
 
Date of revision: $DATE_OF_REVISION\n"
 
}
 

	
 

	
 
#=== FUNCTION =================================================================
 
#        Name: usage
 
# Description: Prints the usage
 
#==============================================================================
...
 
@@ -397,11 +412,12 @@ download () {
 
usage() {
 

	
 
    printf "$SCRIPTNAME - $VERSION - $DESCRIPTION
 

	
 
    Download packages from AUR or check installed, foreign packages, if there are updates available.
 

	
 
    Usage:
 
      $SCRIPTNAME <packages>...
 
      $SCRIPTNAME [options] [<packages>]
 
      $SCRIPTNAME [options] [<packages>]...
 

	
 
    Options:
 
      -h, --help                             Display help
...
 
@@ -410,6 +426,7 @@ usage() {
 
      -s KEYWORD, --search KEYWORD           Search for packages containing specified keyword
 
      -v, --verbose                          Be more verbose, can be supplied at  maximum 2 times
 
      -q, --quiet                            Be less verbose. Takes precedence over -v and --verbose
 
      --version                              Print version information and exits
 

	
 
    For complete documentation, run: man 8 yaah\n"
 
}
...
 
@@ -467,6 +484,10 @@ while true; do
 
            search_flag=1
 
            shift
 
            ;;
 
        --version)
 
            version
 
            exit 0
 
            ;;
 
        --)
 
            shift
 
            break
yaah.completion
Show inline comments
...
 
@@ -4,7 +4,7 @@
 
    COMPREPLY=()
 
    cur="${COMP_WORDS[COMP_CWORD]}"
 
    prev="${COMP_WORDS[COMP_CWORD-1]}"
 
    opts="-h --help -c --check -d --downloaddir -s --search -v --verbose -q --quiet"
 
    opts="-h --help -c --check -d --downloaddir -s --search -v --verbose -q --quiet --version"
 

	
 
    if [[ ${cur} == -* ]]; then
 
        COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
yaah.rst
Show inline comments
...
 
@@ -7,20 +7,17 @@ Yet another AUR helper
 
----------------------
 

	
 
:Author:         Dennis Fink <the_metalgamer@hackerspace.lu>
 
:Date:           2013-03-04
 
:Date:           2013-05-19
 
:Copyright:      GPLv3+
 
:Version:        Yaah 0.3.3
 
:Version:        Yaah 0.3.4
 
:Manual section: 8
 
:Manual group:   Yaah Manual
 

	
 
SYNOPSIS
 
========
 

	
 
yaah [options] [packages]
 

	
 
yaah (packages)
 

	
 
yaah -s keyword
 
yaah <packages>...
 
yaah [options] [<packages>]...
 

	
 
DESCRIPTION
 
===========
...
 
@@ -36,10 +33,11 @@ OPTIONS
 

	
 
-h, --help                              Display help.
 
-c, --check                             Check installed, foreign packages, if there are updates available.
 
-d directory, --downloaddir=directory   Download packages to the specified directory.
 
-s, --search                            Search for packages containing specified keyword.
 
-d DIRECTORY, --downloaddir=DIRECTORY   Download packages to the specified directory.
 
-s KEYWORD, --search KEYWORD            Search for packages containing specified keyword.
 
-v, --verbose                           Be more verbose, can be supplied at maximum 2 times.
 
-q, --quiet                             Be less verbose. Takes precedence over -v and --verbose.
 
--version                               Print version information and exit.
 

	
 
EXAMPLES
 
========
0 comments (0 inline, 0 general)