|
Line 0
Link Here
|
|
|
1 |
#!/bin/sh |
| 2 |
|
| 3 |
PKG_PREFIX=${PKG_PREFIX:-%%PREFIX%%} |
| 4 |
|
| 5 |
if [ $# -ne 2 ]; then |
| 6 |
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2 |
| 7 |
exit 1 |
| 8 |
fi |
| 9 |
|
| 10 |
execs="mcdaemon mcdisplay mcdoc mcformatgui mcgui mcplot mcresplot mcrun mcstas2vitess" |
| 11 |
|
| 12 |
case $2 in |
| 13 |
DEINSTALL) |
| 14 |
|
| 15 |
if [ ! -f "${PKG_PREFIX}/bin" ]; then |
| 16 |
echo "Deinstalling links to executables in ${PKG_PREFIX}/bin."; |
| 17 |
for target in ${execs}; do |
| 18 |
rm ${PKG_PREFIX}/bin/${target}; |
| 19 |
done |
| 20 |
fi |
| 21 |
;; |
| 22 |
esac |
| 23 |
|
| 24 |
exit 0 |