]> git.armaanb.net Git - charsel.git/blob - INSTALL
fixed markdown fomatting
[charsel.git] / INSTALL
1 #!/bin/env sh
2 # Make the folder in /tmp and make sure that it is writeable
3 mkdir /tmp/charsel/
4 chmod 777 /tmp/charsel/
5
6 # Makes charsel executeable
7 chmod +x charsel
8
9 # 2 sets of commands for whether it is root or not
10 if [ `whoami` == root ]; then
11   mkdir -p /usr/share/charsel/charfiles
12   cp charfiles/* /usr/share/charsel/charfiles/
13   mkdir /usr/share/doc/charsel
14   cp README.md /usr/share/doc/charsel/
15   cp src/motd /usr/share/charsel
16   cp src/charsel /usr/bin/
17   exit
18 else
19   mkdir -p ~/.local/share/charsel/charfiles
20   cp charfiles/* ~/.local/share/charsel/charfiles
21   cp src/motd ~/.local/share/charsel/
22   cp src/charsel ~/.local/bin/
23   exit
24 fi