diff options
author | Rafael Marçalo <raroma09@gmail.com> | 2023-09-10 23:41:32 +0100 |
---|---|---|
committer | Rafael Marçalo <raroma09@gmail.com> | 2023-09-10 23:41:32 +0100 |
commit | 91bc2fd5602cbf2a52c85ad657d5709c0deabf10 (patch) | |
tree | fd8b0d0b2f274f8219defa32526c3894045ea847 /suckless/.local | |
parent | f2f62795c6bab466b9354bc417c123bf5f39db5f (diff) |
Started working on OpenBSD support
Diffstat (limited to 'suckless/.local')
-rwxr-xr-x | suckless/.local/src/compileSource | 62 |
1 files changed, 43 insertions, 19 deletions
diff --git a/suckless/.local/src/compileSource b/suckless/.local/src/compileSource index ae288aa..f9595ab 100755 --- a/suckless/.local/src/compileSource +++ b/suckless/.local/src/compileSource @@ -5,6 +5,7 @@ ################### SRC=$(pwd) +KERNEL=$(uname) ################################# # Cloning and Cleaning Programs # @@ -12,26 +13,33 @@ SRC=$(pwd) git clone git@github.com:rafa-99/dmenu.git git clone git@github.com:rafa-99/dwm.git -git clone git@github.com:rafa-99/farbfeld.git -git clone git@github.com:rafa-99/neovimb.git git clone git@github.com:rafa-99/pkg.git git clone git@github.com:rafa-99/queryt.git -git clone git@github.com:rafa-99/sent.git git clone git@github.com:rafa-99/slock.git -git clone git@github.com:rafa-99/slstatus.git git clone git@github.com:rafa-99/st.git -git clone git@github.com:rafa-99/xmouseless.git + +if [ "$KERNEL" = "Linux" ]; then + git clone git@github.com:rafa-99/farbfeld.git + git clone git@github.com:rafa-99/neovimb.git + git clone git@github.com:rafa-99/sent.git + git clone git@github.com:rafa-99/slstatus.git + git clone git@github.com:rafa-99/xmouseless.git +fi + cd "$SRC"/dmenu && git pull ; cd "$SRC"/dwm && git pull ; -cd "$SRC"/farbfeld && git pull ; -cd "$SRC"/neovimb && git pull ; cd "$SRC"/pkg && git pull ; cd "$SRC"/queryt && git pull ; -cd "$SRC"/sent && git pull ; cd "$SRC"/slock && git pull ; -cd "$SRC"/slstatus && git pull ; cd "$SRC"/st && git pull ; -cd "$SRC"/xmouseless && git pull ; + +if [ "$KERNEL" = "Linux" ]; then + cd "$SRC"/farbfeld && git pull ; + cd "$SRC"/neovimb && git pull ; + cd "$SRC"/sent && git pull ; + cd "$SRC"/slstatus && git pull ; + cd "$SRC"/xmouseless && git pull ; +fi ########################## # Setting Configurations # @@ -39,12 +47,25 @@ cd "$SRC"/xmouseless && git pull ; [ ! -f "$SRC"/dmenu/config.h ] && cp -rf "$HOME"/.config/suckless/dmenu/config.h "$SRC"/dmenu/ ; [ ! -f "$SRC"/dwm/config.h ] && cp -rf "$HOME"/.config/suckless/dwm/config.h "$SRC"/dwm/ ; -[ ! -f "$SRC"/neovimb/src/config.h ] && cp -rf "$HOME"/.config/suckless/neovimb/config.h "$SRC"/neovimb/src ; -[ ! -f "$SRC"/sent/config.h ] && cp -rf "$HOME"/.config/suckless/sent/config.h "$SRC"/sent/ ; [ ! -f "$SRC"/slock/config.h ] && cp -rf "$HOME"/.config/suckless/slock/config.h "$SRC"/slock/ ; -[ ! -f "$SRC"/slstatus/config.h ] && cp -rf "$HOME"/.config/suckless/slstatus/config.h "$SRC"/slstatus/ ; [ ! -f "$SRC"/st/config.h ] && cp -rf "$HOME"/.config/suckless/st/config.h "$SRC"/st/ ; -[ ! -f "$SRC"/xmouseless/config.h ] && cp -rf "$HOME"/.config/suckless/xmouseless/config.h "$SRC"/xmouseless/ ; + +if [ "$KERNEL" = "Linux" ]; then + [ ! -f "$SRC"/neovimb/src/config.h ] && cp -rf "$HOME"/.config/suckless/neovimb/config.h "$SRC"/neovimb/src ; + [ ! -f "$SRC"/sent/config.h ] && cp -rf "$HOME"/.config/suckless/sent/config.h "$SRC"/sent/ ; + [ ! -f "$SRC"/slstatus/config.h ] && cp -rf "$HOME"/.config/suckless/slstatus/config.h "$SRC"/slstatus/ ; + [ ! -f "$SRC"/xmouseless/config.h ] && cp -rf "$HOME"/.config/suckless/xmouseless/config.h "$SRC"/xmouseless/ ; +else + ################# + # Apply Patches # + ################# + + cd "$SRC"/dwm && cat "$HOME"/.config/suckless/patches/dwm-openbsd.patch | patch -p1 + cd "$SRC"/dmenu && cat "$HOME"/.config/suckless/patches/dmenu-openbsd.patch | patch -p1 + cd "$SRC"/queryt && cat "$HOME"/.config/suckless/patches/queryt-openbsd.patch | patch -p1 + cd "$SRC"/slock && cat "$HOME"/.config/suckless/patches/slock-openbsd.patch | patch -p1 + cd "$SRC"/st && cat "$HOME"/.config/suckless/patches/st-openbsd.patch | patch -p1 +fi ######################## # Recompiling Programs # @@ -52,12 +73,15 @@ cd "$SRC"/xmouseless && git pull ; cd "$SRC"/dwm && git pull ; doas make clean install ; make clean cd "$SRC"/dmenu && git pull ; doas make clean install ; make clean -cd "$SRC"/farbfeld && git pull ; doas make clean install ; make clean -cd "$SRC"/neovimb && git pull ; doas make clean install ; make clean cd "$SRC"/pkg && git pull ; doas make clean install ; make clean cd "$SRC"/queryt && git pull ; doas make clean install ; make clean -cd "$SRC"/sent && git pull ; doas make clean install ; make clean cd "$SRC"/slock && git pull ; doas make clean install ; make clean -cd "$SRC"/slstatus && git pull ; doas make clean install ; make clean cd "$SRC"/st && git pull ; doas make clean install ; make clean -cd "$SRC"/xmouseless && git pull ; doas make clean install ; make clean + +if [ "$KERNEL" = "Linux" ]; then + cd "$SRC"/farbfeld && git pull ; doas make clean install ; make clean + cd "$SRC"/neovimb && git pull ; doas make clean install ; make clean + cd "$SRC"/sent && git pull ; doas make clean install ; make clean + cd "$SRC"/slstatus && git pull ; doas make clean install ; make clean + cd "$SRC"/xmouseless && git pull ; doas make clean install ; make clean +fi |