6f83f8485c
- Bump PORTREVISION, accordingly PR: ports/160414 [1] Submitted by: WATANABE Kazuhiro <CQG00620_AT_nifty_DOT_ne_DOT_jp> [1] Approved by: maintainer
26 lines
348 B
Bash
26 lines
348 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
|