-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure
executable file
·40 lines (37 loc) · 1022 Bytes
/
configure
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
#!/bin/sh
#OS=$(printf 'Linux\nOpenBSD\nFreeBSD\nSolaris' | fzf --layout=reverse --height 40%)
OS=$(uname)
case $OS in
Linux) cp -f mkconfig/config.mk.linux config.mk ;;
OpenBSD) cp -f mkconfig/config.mk.openbsd config.mk ;;
FreeBSD) cp -f mkconfig/config.mk.freebsd config.mk ;;
Solaris) cp -f mkconfig/config.mk.solaris config.mk ;;
esac
#sed -i 's/##/#/g' config.mk
#sed -i '14 s/^/#/' config.mk
#sed -i '15 s/^/#/' config.mk
#sed -i '25 s/^/#/' config.mk
#sed -i '27 s/^/#/' config.mk
#sed -i '29 s/^/#/' config.mk
#sed -i '65 s/^/#/' config.mk
#sed -i '66 s/^/#/' config.mk
#sed -i 's/##/#/g' config.mk
#
#if [ "$OS" = "Linux" ]; then
# true
#else if [ "$OS" = "OpenBSD" ]; then
# sed -i '27 s/.//' config.mk
# sed -i '29 s/.//' config.mk
#else if [ "$OS" = "FreeBSD" ]; then
# sed -i '14 s/.//' config.mk
# sed -i '15 s/.//' config.mk
# sed -i '25 s/.//' config.mk
#else if [ "$OS" = "Solaris" ]; then
# sed -i '65 s/.//' config.mk
# sed -i '66 s/.//' config.mk
#fi
#fi
#fi
#fi
#
#sed -i 's/##/#/g' config.mk