File: xfm.install.script

package info (click to toggle)
xfm 1.4.3-8
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,424 kB
  • ctags: 1,642
  • sloc: ansic: 15,087; cpp: 510; makefile: 43; sh: 21
file content (34 lines) | stat: -rwxr-xr-x 772 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#! /bin/sh

#-------------------------------------------------------------------------
# xfm.install
#
# (c) Simon Marlow 1994
#-------------------------------------------------------------------------

if [ -d $HOME/.xfm ]; then
	echo You already have a ~/.xfm directory, would you like it
	echo -n 'replaced with the default configuration? [n] '
	read ANS
	if [ "$ANS" != "y" -a "$ANS" != "Y" ]; then
		echo Aborting.
		exit 1
	fi
	rm -rf $HOME/.xfm
fi

mkdir $HOME/.xfm && cp /usr/X11/lib/X11/xfm/dot.xfm/?* $HOME/.xfm

if [ $? != 0 ]; then
	echo Installation failed for some reason.  Please consult your
	echo system administrator.
	exit 1
fi

chmod u+w $HOME/.xfm/?*

if [ ! -d $HOME/.trash ]; then
	mkdir $HOME/.trash
fi

echo Default configuration files installed.