remove old scripts and rename current ones
parent
ad82bb9dca
commit
ceff9d7e5d
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/fish
|
||||
#!/usr/bin/env fish
|
||||
|
||||
set filter 'pan=mono|c0=0.5*FL+-0.5*FR,silenceremove=start_periods=1:detection=peak'
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/fish
|
||||
#!/usr/bin/env fish
|
||||
|
||||
function fail
|
||||
echo "failed to process $f, exiting"
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
megadl (cat ~/dl)
|
|
@ -1,3 +0,0 @@
|
|||
#!/usr/bin/fish
|
||||
|
||||
megadl (cat ~/dl)
|
|
@ -1,126 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
cd "${0%/*}"
|
||||
. ./rebuild_pkgs.sh
|
||||
pkg_ver() {
|
||||
sed '/^pkgver\=/!d;s/pkgver\=\(.*\)/\1/' PKGBUILD
|
||||
}
|
||||
exit_on_err() {
|
||||
local res=$?
|
||||
echo "error in rebuild, aborting"
|
||||
exit "$res"
|
||||
}
|
||||
higan_make() {
|
||||
make -j12 -C $@ uninstall
|
||||
make -j12 -C $@ clean || exit_on_err
|
||||
make -j12 -C $@ all || exit_on_err
|
||||
make -j12 -C $@ install || exit_on_err
|
||||
}
|
||||
build_package() {
|
||||
cd ~/bin || exit_on_err
|
||||
|
||||
local pkg=$1
|
||||
shift
|
||||
|
||||
local special_handling="None"
|
||||
local makepkg_args="-isrLcCf --noconfirm"
|
||||
local pull_url="https://aur.archlinux.org/$pkg.git"
|
||||
local branch
|
||||
|
||||
while (( $# ))
|
||||
do
|
||||
case $1 in
|
||||
--handle)
|
||||
special_handling=$2
|
||||
shift 2
|
||||
;;
|
||||
--url)
|
||||
pull_url=$2
|
||||
shift 2
|
||||
;;
|
||||
--branch)
|
||||
branch=-b "$2"
|
||||
shift 2
|
||||
;;
|
||||
--asdeps|--skipinteg|-f)
|
||||
makepkg_args+=" $1"
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
echo "error in rebuild configuration ($1), aborting"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [[ ! -d ~/bin/$pkg ]]
|
||||
then
|
||||
git clone $branch "$pull_url" || exit_on_err
|
||||
fi
|
||||
|
||||
cd "$pkg" || exit_on_err
|
||||
git pull || exit_on_err
|
||||
|
||||
local new_tag
|
||||
|
||||
case $special_handling in
|
||||
None)
|
||||
;;
|
||||
Higan)
|
||||
new_tag=$(git describe --tags "$(git rev-list --tags --max-count=1)")
|
||||
git fetch --tags
|
||||
git checkout "$new_tag"
|
||||
higan_make higan target=higan
|
||||
higan_make icarus
|
||||
make -j12 -C shaders install || exit_on_err
|
||||
return
|
||||
;;
|
||||
*)
|
||||
echo "incorrect handler ($special_handling), aborting"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
makepkg $makepkg_args || exit_on_err
|
||||
}
|
||||
resume_from() {
|
||||
local resume
|
||||
|
||||
for pkg in ${all_pkgs[*]}
|
||||
do
|
||||
[[ $pkg = "$1" ]] && resume=1
|
||||
[[ $resume ]] && echo "$pkg"
|
||||
done
|
||||
}
|
||||
main() {
|
||||
local pkg
|
||||
local pkgs
|
||||
|
||||
while (( $# ))
|
||||
do
|
||||
case $1 in
|
||||
--resume-from)
|
||||
pkgs+=" $(resume_from "$2")"
|
||||
shift 2
|
||||
;;
|
||||
*)
|
||||
pkgs+=" $1"
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [[ ! $pkgs ]]
|
||||
then
|
||||
pkgs=${all_pkgs[*]}
|
||||
fi
|
||||
|
||||
for pkg in $pkgs
|
||||
do
|
||||
build_package "$pkg" ${options[$pkg]}
|
||||
done
|
||||
}
|
||||
|
||||
main $@
|
||||
|
||||
## EOF
|
|
@ -1,68 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
m64pncp=mupen64plus-noncore-plugins-git
|
||||
greyserv_git="https://git.greyserv.net/marrub"
|
||||
all_pkgs=(
|
||||
# deps
|
||||
cef-standard
|
||||
cereal
|
||||
libsodium-git
|
||||
vim-runtime-git
|
||||
|
||||
# packages
|
||||
"$m64pncp"
|
||||
chocolate-doom
|
||||
desmume-git
|
||||
dolphin-emu-git
|
||||
eternity-engine-git
|
||||
fceux-git
|
||||
gdcc-git
|
||||
godot
|
||||
gopherus
|
||||
gvim-git
|
||||
gzdoom-legacy
|
||||
higan
|
||||
maxcso
|
||||
mednaffe
|
||||
megatools
|
||||
mgba-git
|
||||
minecraft-launcher
|
||||
minecraft-server-fabric
|
||||
motsognir
|
||||
mupen64plus-git
|
||||
mupen64plus-gui-git
|
||||
nicotine-plus-git
|
||||
obs-linuxbrowser-bin
|
||||
obs-studio-git
|
||||
pcsx2-git
|
||||
plasma5-applets-mpdnowplaying
|
||||
powershell-bin
|
||||
ppsspp-git
|
||||
prboom-plus
|
||||
ripcord
|
||||
rpcs3-git
|
||||
sharenix-git
|
||||
slade
|
||||
squirrel-sql
|
||||
teamviewer
|
||||
ttf-twemoji-color
|
||||
xf86-input-xwiimote-git
|
||||
xwiimote-git
|
||||
zdoom
|
||||
)
|
||||
declare -A options=(
|
||||
[cef-standard]="--asdeps"
|
||||
[cereal]="--asdeps"
|
||||
[libsodium-git]="--asdeps"
|
||||
[vim-runtime-git]="--asdeps"
|
||||
|
||||
[$m64pncp]="-f --url $greyserv_git/$m64pncp.git"
|
||||
[gdcc-git]="--url $greyserv_git/gdcc-git.git"
|
||||
[higan]="--handle Higan --url https://gitlab.com/higan/higan.git/"
|
||||
[motsognir]="--url $greyserv_git/motsognir.git"
|
||||
[ppsspp-git]="--url $greyserv_git/ppsspp-git.git"
|
||||
[teamviewer]="--url $greyserv_git/teamviewer.git --branch nmfix"
|
||||
[minecraft-server-fabric]="--url $greyserv_git/minecraft-server-fabric.git"
|
||||
)
|
||||
|
||||
## EOF
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/fish
|
||||
#!/usr/bin/env fish
|
||||
|
||||
source "$HOME/src/scripts/sharenix.sh"
|
||||
run_spectacle -a
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/fish
|
||||
#!/usr/bin/env fish
|
||||
|
||||
source "$HOME/src/scripts/sharenix.sh"
|
||||
run_spectacle -f
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/fish
|
||||
#!/usr/bin/env fish
|
||||
|
||||
source "$HOME/src/scripts/sharenix.sh"
|
||||
run_spectacle -r
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/fish
|
||||
#!/usr/bin/env fish
|
||||
|
||||
function run_spectacle
|
||||
set f "$HOME/Pictures/"(date "+%y%m%d-%H%M%S")".png"
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/fish
|
||||
#!/usr/bin/env fish
|
||||
|
||||
function pull_plugins
|
||||
for plugin in ./*
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/fish
|
||||
#!/usr/bin/env fish
|
||||
|
||||
while true
|
||||
x11vnc -forever -scale 0.25
|
|
@ -18,6 +18,6 @@ function fish_greeting
|
|||
awk -f ~/src/scripts/mid.awk col=$COLUMNS
|
||||
end
|
||||
|
||||
alias rebuild $HOME/src/scripts/rebuild.sh
|
||||
alias rebuild $HOME/src/scripts/rebuild.rkt
|
||||
|
||||
## EOF
|
||||
|
|
|
@ -1,29 +0,0 @@
|
|||
[[ -o interactive && ! -o login && -z $TMUX ]] &&
|
||||
exec tmux new-session
|
||||
|
||||
HISTFILE=~/.zsh/hist
|
||||
HISTSIZE=100000
|
||||
SAVEHIST=10000
|
||||
|
||||
setopt appendhistory extendedglob nomatch prompt_subst correct
|
||||
unsetopt autocd beep
|
||||
|
||||
bindkey -e
|
||||
bindkey "${terminfo[khome]}" beginning-of-line
|
||||
bindkey "${terminfo[kend]}" end-of-line
|
||||
|
||||
zstyle :compinstall filename '/home/marrub/.zshrc'
|
||||
zstyle ':completion:*' format '[Completing %d]'
|
||||
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
|
||||
alias rebuild=$HOME/src/scripts/rebuild.sh
|
||||
alias ls='ls --color=auto'
|
||||
|
||||
PROMPT='%#'
|
||||
RPROMPT='%2~'
|
||||
|
||||
[[ -n $TMUX ]] &&
|
||||
echo "Word of the moment: $(shuf -n1 /usr/share/dict/words)" |
|
||||
awk -f ~/src/scripts/mid.awk col=$COLUMNS
|
Loading…
Reference in New Issue