00e9462c7d
PR: 192965 Submitted by: WATANABE Kazuhiro Stage fixes: marino
28 lines
361 B
Bash
28 lines
361 B
Bash
#!/bin/sh
|
|
# $FreeBSD$
|
|
|
|
if [ $2 != "DEINSTALL" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
dir="${PKG_PREFIX}/lib/X11/fonts/local";
|
|
to="$dir/fonts.alias";
|
|
from="$to.orig";
|
|
|
|
if ! mv $to $from; then
|
|
echo "Couldn't rename $to."
|
|
exit 1
|
|
fi
|
|
|
|
IFS="
|
|
"
|
|
|
|
while read line; do
|
|
trimmed=${line# *}
|
|
case $trimmed in
|
|
-alias-*) ;;
|
|
*) echo $line;;
|
|
esac
|
|
done < $from > $to
|
|
|
|
rm -f $from
|