]> git.armaanb.net Git - charsel.git/blob - INSTALL
1.0 release!
[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 src/charsel
8
9 # Makes local folder
10 mkdir -p ~/.local/share/charsel/charfiles/
11
12 # 2 sets of commands for whether it is root or not
13 if [ `whoami` == root ]; then
14   mkdir -p /usr/share/charsel/charfiles/
15   cp charfiles/* /usr/share/charsel/charfiles/
16   mkdir /usr/share/doc/charsel
17   cp README.md /usr/share/doc/charsel/
18   cp src/motd /usr/share/charsel
19   cp src/charsel /usr/bin/
20   exit
21 else
22   cp charfiles/* ~/.local/share/charsel/charfiles/
23   cp src/motd ~/.local/share/charsel/
24   cp src/charsel ~/.local/bin/
25   exit
26 fi