-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.sh
executable file
·44 lines (33 loc) · 1.08 KB
/
init.sh
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
35
36
37
38
39
40
41
42
43
44
# set -e # This setting is telling the script to exit on a command error.
# set -x # You refer to a noisy script.(Used to debugging)
echo " "
export DEBIAN_FRONTEND=noninteractive
CURRENT_DATE=$(date "+%Y%m%d%H%M%S")
SCRIPT=$(readlink -f "")
SCRIPTDIR=$(dirname "$SCRIPT")
if [ "$(whoami)" != "root" ]; then
SUDO=sudo
fi
# """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
# Maintainer :- Vallabh Kansagara<[email protected]> — @vrkansagara
# Note :- Suckless terminal for DWM and general purpose.
# """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
# ${SUDO} sudo apt-get install --yes -q --no-install-recommends
${SUDO} cp -R hooks .git/
FILES="patches/*.diff"
for f in $FILES; do
echo "Applying path for the [ $f ]"
dos2unix $f
patch --merge=diff3 -i $f
sleep 1
done
# Give current user permission to work with source
${SUDO} chown $USER -Rf .
${SUDO} chgrp $USER -Rf .
${SUDO} rm -rf /usr/share/bin/st
make clean
make
${SUDO} make install
${SUDO} make clean
echo "Suckless termina is ready to use ...... [DONE]"
exit 0