-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild_nyxt_from_git_master_branch.sh
More file actions
executable file
·60 lines (46 loc) · 1.38 KB
/
build_nyxt_from_git_master_branch.sh
File metadata and controls
executable file
·60 lines (46 loc) · 1.38 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash -
#===============================================================================
#
# FILE: build_nyxt_from_git_master_branch.sh
#
# USAGE: ./build_nyxt_from_git_master_branch.sh
#
# DESCRIPTION: Build nyxt from master git branch
#
# OPTIONS:
# REQUIREMENTS: asdf sbcl libfixposix
# BUGS: ---
# NOTES: Clone this repo git@github.com:atlas-engineer/nyxt.git
# AUTHOR: Bhaskar Chowdhury (https://about.me/unixbhaskar), unixbhaskar@gmail.com
# ORGANIZATION: Independent
# CREATED: 01/21/2022 12:47
# REVISION: ---
#===============================================================================
set -o nounset # Treat unset variables as an error
basepath=/home/bhaskar/git-linux/
cd $basepath
if [ ! -d nyxt ];then
git clone git@github.com:atlas-engineer/nyxt.git
cd nyxt
elif [ -d nyxt ];then
cd nyxt
# discard stuff from last build
git reset --hard
# delete all of the last build stuff
git clean -xdf
git pull
else
printf "The Nyxt directory already exists....not cloning \n"
exit 1
fi
printf "Lets build it on.....$(hostname)"
make all
if [ $? -eq 0 ] ; then
printf "Do you want to install system wide? [Y/N]: %s"
read -r res
if [ "$res" == "Y" ];then
sudo make install
else
printf "Okay, you not want to install it system wide....not installing "
fi
fi