Skip to content

Commit

Permalink
mkinitramfs-ll.{ba,z}sh: 0.13.8 version bump: fix cmdline switches
Browse files Browse the repository at this point in the history
  • Loading branch information
tokiclover committed Oct 6, 2014
1 parent 0e164b2 commit 6f9733f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 20 deletions.
17 changes: 7 additions & 10 deletions mkinitramfs-ll.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
# $Header: mkinitramfs-ll/mkinitramfs-ll.bash Exp $
# $Author: (c) 2011-2014 -tclover <tokiclover@gmail.com> Exp $
# $License: 2-clause/new/simplified BSD Exp $
# $Version: 0.13.6 2014/09/26 12:33:03 Exp $
# $Version: 0.13.8 2014/10/01 12:33:03 Exp $
#

typeset -A PKG
PKG=(
[name]=mkinitramfs-ll
[shell]=bash
[version]=0.13.6
[version]=0.13.8
)

# @FUNCTION: usage
Expand Down Expand Up @@ -126,17 +126,14 @@ declare -A opts

for (( ; $# > 0; )); do
case $1 in
(-[KLaglqrt])
opts[$1]=true
shift;;
(--[aglrt]*|--sq*|--keep*)
(-[KLaglqrt]|--[aglrt]*|--sq*|--keep*)
opts[${1/--/-}]=true
shift;;
(-[FMbcfkmpsuy])
opts[$1]+=:$2
(-[dkp]|--[pu]*|-kv)
opts[${2/--/-}]="$2"
shift 2;;
(--[bcfkmpsu]*)
opts[${2/--/-}]=$2
(-[FMbcfmsy]|--[bcfkms]*)
opts[${1/--/-}]+=":$2"
shift 2;;
(--)
shift
Expand Down
17 changes: 7 additions & 10 deletions mkinitramfs-ll.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
# $Header: mkinitramfs-ll/mkinitramfs-ll.zsh Exp $
# $Author: (c) 2011-2014 -tclover <tokiclover@gmail.com> Exp $
# $License: 2-clause/new/simplified BSD Exp $
# $Version: 0.13.6 2014/09/14 12:33:03 Exp $
# $Version: 0.13.8 2014/10/01 12:33:03 Exp $
#

typeset -A PKG
PKG=(
name mkinitramfs-ll
shell zsh
version 0.13.4
version 0.13.8
)

# @FUNCTION: usage
Expand Down Expand Up @@ -125,18 +125,15 @@ eval set -- ${opt}

for (( ; $# > 0; ))
case $1 {
(-[KLaglqrt])
opts[$1]=
shift;;
(--[aglrt]*|--sq*|--keep*)
(-[KLaglqrt]|--[aglrt]*|--sq*|--keep*)
opts[${1/--/-}]=
shift;;
(-[FMbcfkmpsuy])
opts[$1]+=:$2
shift 2;;
(--[bcfkmpsu]*)
(-[dkp]|--[pu]*|-kv)
opts[${2/--/-}]=$2
shift 2;;
(-[FMbcfmsy]|--[bcfkms]*)
opts[${1/--/-}]+=:$2
shift 2;;
(--)
shift
break;;
Expand Down

0 comments on commit 6f9733f

Please sign in to comment.