postinst is in gawk 1:3.1.8+dfsg-0.1ubuntu1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 | #!/bin/sh -e
update-alternatives --quiet --install /usr/bin/awk awk /usr/bin/gawk 10 \
--slave /usr/share/man/man1/awk.1.gz awk.1.gz /usr/share/man/man1/gawk.1.gz \
--slave /usr/bin/nawk nawk /usr/bin/gawk \
--slave /usr/share/man/man1/nawk.1.gz nawk.1.gz /usr/share/man/man1/gawk.1.gz
for badlink in /usr/man/man1/awk.1 /usr/man/man1/nawk.1; do
if [ -L $badlink ]; then
if ! ls -l $(ls -l $badlink | cut -d">" -f2) >/dev/null 2>&1; then
rm -f $badlink; fi; fi; done
exit 0
|