postinst is in dietlibc-dev 0.33~cvs20120325-4.
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 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #!/bin/sh
set -e
test "$1" = 'configure' || exit 0
test ! -h /usr/lib/diet/lib-x86_64 || exit 0
err() {
>&2 cat <<-EOT
$1 exists in /usr/lib/diet/lib/ and /usr/lib/diet/lib-x86_64/.
Debian installs diet compiled libraries in /usr/lib/diet/lib/.
Please remove /usr/lib/diet/lib-x86_64/$1, and reinstall the
package.
EOT
exit 1
}
if test -d /usr/lib/diet/lib-x86_64; then
for i in `ls -1a /usr/lib/diet/lib-x86_64/`; do
test "$i" != '.' || continue; test "$i" != '..' || continue
test ! -e /usr/lib/diet/lib/"$i" || err "$i"
done
for i in `ls -1a /usr/lib/diet/lib-x86_64/`; do
test "$i" != '.' || continue; test "$i" != '..' || continue
mv /usr/lib/diet/lib-x86_64/"$i" /usr/lib/diet/lib/"$i" || exit 1
done
rmdir /usr/lib/diet/lib-x86_64
fi
ln -s lib /usr/lib/diet/lib-x86_64
|