92aaf1ed36
Binary packaging now possible -- first cut.
27 lines
502 B
Bash
27 lines
502 B
Bash
#! /bin/sh
|
|
|
|
case $2 in
|
|
POST-DEINSTALL)
|
|
if [ -d %%TWCFG%% -o -d %%TWDB%% ]; then
|
|
unset ANS
|
|
echo
|
|
while [ -z "$ANS" ]; do
|
|
echo If permanently deleting this package,
|
|
echo %%TWCFG%% and %%TWDB%% may be removed.
|
|
echo Do you wish to delete %%TWCFG%%
|
|
echo -n and %%TWDB%%? '(yes/no) -: '
|
|
read ANS
|
|
case $ANS in
|
|
[Yy]|[Yy][Ee][Ss])
|
|
rm -rf %%TWCFG%% %%TWDB%%
|
|
;;
|
|
[Nn]|[Nn][Oo])
|
|
;;
|
|
*) echo Answer must be yes or no.
|
|
echo
|
|
unset ANS
|
|
;;
|
|
esac
|
|
done
|
|
fi
|
|
esac
|