summaryrefslogtreecommitdiff
path: root/dviware/umddvi/misc/unmakesubdir.sh
blob: e2d1ee412ad4f6f0b97b024d9f04c8d9daf0ead7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/sh
#
# unmakesubdir - make the TeX fonts reside in a flat style system
#
# usage:
#	cd /usr/lib/tex/fonts
#	sh unmakesubdir.sh

if [ ! -f SUBDIR ]; then
	echo "$0: SUBDIR file already gone.
Are you sure you need to do this?
(If so, create a SUBDIR file and try again.)" 1>&2
	exit 1
fi

rm SUBDIR

for dir in *; do
	if [ -d $dir ]; then
		mv -i $dir/*.*pxl .
	fi
done