Fix #18
This commit is contained in:
parent
8c91a53a7e
commit
73702ab805
14
apt-cyg
14
apt-cyg
|
@ -33,7 +33,7 @@ fi
|
||||||
ARCH=${HOSTTYPE/i6/x}
|
ARCH=${HOSTTYPE/i6/x}
|
||||||
|
|
||||||
function usage () {
|
function usage () {
|
||||||
sed '1d;$d' <<< '
|
cat <<+
|
||||||
usage: apt-cyg [command] [options] [packages]
|
usage: apt-cyg [command] [options] [packages]
|
||||||
|
|
||||||
Commands:
|
Commands:
|
||||||
|
@ -57,17 +57,17 @@ Options:
|
||||||
-m, --mirror <url> set mirror
|
-m, --mirror <url> set mirror
|
||||||
--help
|
--help
|
||||||
--version
|
--version
|
||||||
'
|
+
|
||||||
}
|
}
|
||||||
|
|
||||||
function version () {
|
function version () {
|
||||||
sed '1d;$d' <<< '
|
cat <<+
|
||||||
apt-cyg version 0.59
|
apt-cyg version 0.59
|
||||||
|
|
||||||
The MIT License (MIT)
|
The MIT License (MIT)
|
||||||
|
|
||||||
Copyright (c) 2005-9 Stephen Jungels
|
Copyright (c) 2005-9 Stephen Jungels
|
||||||
'
|
+
|
||||||
}
|
}
|
||||||
|
|
||||||
find-workspace () {
|
find-workspace () {
|
||||||
|
@ -338,9 +338,9 @@ apt-searchall () {
|
||||||
/-debuginfo-/ {next}
|
/-debuginfo-/ {next}
|
||||||
/-devel-/ && pkg~/\.exe$/ {next}
|
/-devel-/ && pkg~/\.exe$/ {next}
|
||||||
/-src\t$/ {next}
|
/-src\t$/ {next}
|
||||||
mc[$2]++ {next}
|
mc[$1]++ {next}
|
||||||
$0 = $2
|
$0 = $1
|
||||||
' FS=/ pkg="$pkg" matches
|
' FS=-[[:digit:]] pkg="$pkg" matches
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue