2 # Make the folder in /tmp and make sure that it is writeable
4 chmod 777 /tmp/charsel/
6 # Makes charsel executeable
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/
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/