-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinstallit.in
executable file
·34 lines (31 loc) · 952 Bytes
/
installit.in
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
prefix=$1
install="@INSTALL@"
prog='@PROGRAM@'
bindir='@BINDIR@'
confdir='@CONFDIR@'
rcfile='@RCFILE@'
case `uname` in
CYGWIN*|cygwin*|MINGW*|mingw*)
$install src/$prog $prefix$bindir || exit 1
echo "Installed $prog in $bindir/"
;;
*)
mkdir -p "$prefix$bindir"
$install -m 755 src/$prog "$prefix$bindir" || exit 1
echo "Installed $prog in $prefix$bindir/"
mkdir -p "$prefix$confdir"
$install -m 644 fireflies.xml "$prefix$confdir" || exit 1
echo "Installed fireflies.xml in $prefix$confdir/"
if [ "$rcfile" != "" ]; then
sh ./add-xscreensaver "$prefix$rcfile"
echo "Added 'fireflies' entry to $prefix$rcfile"
else
echo "Could not find global XScreensaver file."
echo "You can add fireflies to your xscreensaver file by typing:"
echo " ./add-xscreensaver <filename>"
echo "from the build directory. <filename> would usually look like"
echo "/home/user/.xscreensaver"
fi
;;
esac