2009-28-09: Christian Ruppert <idl0r@gentoo.org>
* src/eshowkw/eshowkw: Make eshowkw a bit more POSIX compliant when using
/bin/sh, thanks to Daniel Pielmeier <billie@gentoo.org>.
+ Ignore comments when parsing arch.list, thanks to Fabian Groffen <grobian@gentoo.org>.
+
2009-12-09: Christian Ruppert <idl0r@gentoo.org>
* src/echangelog/echangelog: Fix bug 284657, thanks to Andrew Gaffney <agaffney@gentoo.org>.
Cleanup VCS detection.
echo -e "\033[0;0m:"
echo
- local archs= arch_length=0 arch=
- archs=( $(< $(get_portage_dir )/profiles/arch.list ) )
- for arch in "${archs[@]}" ; do
+ local archs=() arch_length=0 arch=
+ while read arch
+ do
+ [[ -z "${arch}" ]] && continue
+ [[ "${arch:0:1}" == "#" ]] && continue
[[ ${#arch} -gt ${arch_length} ]] && arch_length=${#arch}
- done
+
+ archs[${#archs[*]}]=$arch
+ done < "$(get_portage_dir)/profiles/arch.list"
+
local versions= pkgname= version_length=0 version=
pkgname=$(basename $(readlink -f ./ ) )