File: install.sh

package info (click to toggle)
xtlf 0.0%2B1.03beta-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,140 kB
  • ctags: 233
  • sloc: perl: 6,072; sh: 160; makefile: 42
file content (26 lines) | stat: -rwxr-xr-x 474 bytes parent folder | download | duplicates (3)
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
#!/bin/sh

rm -r /usr/share/xtlf

if [ ! -d /usr/share/xtlf ]; then
	mkdir /usr/share/xtlf
fi

cp -a ./* /usr/share/xtlf

if [ ! -d $HOME/.xtlf ]; then
	mkdir $HOME/.xtlf
	cp -a /usr/share/xtlf/config/* $HOME/.xtlf
fi

chown -R $USERNAME:users $HOME/.xtlf

cp xtlf /usr/bin
chmod +x /usr/bin/xtlf

cp ./pixmaps/xtlf.png /usr/share/pixmaps

echo "xtlf has been installed, you can start it with 'xtlf'"
echo "You find the rules files in /usr/share/xtlf/scoring/rules"

exit 0