mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-11 15:06:58 +02:00
sys-apps/gawk: Sync with Gentoo
It's from Gentoo commit 4d6c697c399f1e323bbe29964a8b5660f393ab14.
This commit is contained in:
parent
a05f8c7258
commit
34bbabf76b
@ -107,30 +107,3 @@ src_install() {
|
||||
doins *.h
|
||||
rm "${ED}"/usr/include/awk/config.h || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Symlink creation here as the links do not belong to gawk, but to any awk
|
||||
if has_version app-admin/eselect && has_version app-eselect/eselect-awk ; then
|
||||
eselect awk update ifunset
|
||||
else
|
||||
local l
|
||||
for l in "${EROOT}"/usr/share/man/man1/gawk.1* "${EROOT}"/usr/bin/gawk ; do
|
||||
if [[ -e ${l} ]] && ! [[ -e ${l/gawk/awk} ]] ; then
|
||||
ln -s "${l##*/}" "${l/gawk/awk}" || die
|
||||
fi
|
||||
done
|
||||
|
||||
if ! [[ -e ${EROOT}/bin/awk ]] ; then
|
||||
# /bin might not exist yet (stage1)
|
||||
[[ -d "${EROOT}/bin" ]] || mkdir "${EROOT}/bin" || die
|
||||
|
||||
ln -s "../usr/bin/gawk" "${EROOT}/bin/awk" || die
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
if has_version app-admin/eselect && has_version app-eselect/eselect-awk ; then
|
||||
eselect awk update ifunset
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user