Compare commits

...

4 Commits

12 changed files with 47 additions and 33 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
fish/priv
computers/*/fish/priv

View File

@ -11,47 +11,19 @@ end
# - _agw_dir_rc = the directory holding this repository
# - _agw_dir_src = non-volatile source code storage
switch (uname)
case Linux
set -gx CC clang
set -gx CXX clang++
set -gx GOPATH ~/go
set -gx RIPGREP_CONFIG_PATH ~/.config/ripgreprc
case Linux NetBSD
set -Ux _agw_dir_bin ~/bin
set -Ux _agw_dir_rc ~/rc
set -Ux _agw_dir_src ~/src
case Darwin
set -gx CMAKE_PREFIX_PATH /usr/local/opt/qt/
set -gx CPPFLAGS "-I/usr/local/opt/ruby/include"
set -gx DISTCC_HOSTS "192.168.1.2,cpp"
set -gx LDFLAGS "-L/usr/local/opt/ruby/lib"
set -gx fish_user_paths "/usr/local/opt/ruby/bin" $fish_user_paths
set -Ux _agw_dir_bin ~/Binaries
set -Ux _agw_dir_rc ~/Sources/scripts
set -Ux _agw_dir_src ~/Sources
case NetBSD
# Yes, these are *actually* needed.
set -gx CC cc
set -gx CXX c++
set -gx PATH $HOME/bin \
/usr/pkg/gcc8/bin \
/sbin \
/usr/sbin \
/bin \
/usr/bin \
/usr/pkg/sbin \
/usr/pkg/bin \
/usr/X11R7/bin \
/usr/games \
/usr/local/bin \
/usr/local/sbin
set -gx PKG_PATH "http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/"(uname -p)"/"(uname -r|cut -f '1 2' -d.|cut -f 1 -d_)"/All"
set -Ux _agw_dir_bin ~/bin
set -Ux _agw_dir_rc ~/rc
set -Ux _agw_dir_src ~/src
case \*
echo (set_color red)"This platform is not configured!"
end
# per-computer configs go here
set -Ux _agw_dir_local $_agw_dir_rc/computers/(hostname)
# execute scripts
@ -59,7 +31,11 @@ if test -f ~/.cargo/env
source ~/.cargo/env
end
for f in (find $_agw_dir_rc/fish -type f)
for f in (test -d $_agw_dir_local/fish &&
find $_agw_dir_local/fish -type f |
env LC_ALL=C sort) \
(find $_agw_dir_rc/fish -type f |
env LC_ALL=C sort)
source $f
end

View File

@ -0,0 +1,5 @@
set -gx CMAKE_PREFIX_PATH /usr/local/opt/qt/
set -gx CPPFLAGS "-I/usr/local/opt/ruby/include"
set -gx DISTCC_HOSTS "192.168.1.2,cpp"
set -gx LDFLAGS "-L/usr/local/opt/ruby/lib"
set -gx fish_user_paths "/usr/local/opt/ruby/bin" $fish_user_paths

1
computers/cain/fish/env Symbolic link
View File

@ -0,0 +1 @@
../../rain/fish/env

View File

@ -0,0 +1,5 @@
# vim: syntax=fish:
set -gx XBPS_DISTDIR $_agw_dir_src/packages/void/dist
set -gx XBPS_HOSTDIR $_agw_dir_bin/void/hostdir
set -gx XBPS_MASTERDIR $_agw_dir_bin/void/masterdir

View File

@ -0,0 +1,6 @@
# vim: syntax=fish:
function xrupdate -d "Sign and upload voidlinux package repository"
xbps-rindex --privkey $_agw_secret_void_privkey --sign-pkg "$XBPS_HOSTDIR"/binpkgs/*.xbps
rsync -azvh --progress "$XBPS_HOSTDIR"/binpkgs/* "$_agw_secret_void_copy_dir"
end

1
computers/cain/vconf Symbolic link
View File

@ -0,0 +1 @@
../rain/vconf

1
computers/cain/void-conf Normal file
View File

@ -0,0 +1 @@
XBPS_MAKEJOBS=12

15
computers/netbsd/fish/env Normal file
View File

@ -0,0 +1,15 @@
set -gx CC cc
set -gx CXX c++
set -gx PATH "$_agw_dir_bin" \
/usr/pkg/gcc8/bin \
/sbin \
/usr/sbin \
/bin \
/usr/bin \
/usr/pkg/sbin \
/usr/pkg/bin \
/usr/X11R7/bin \
/usr/games \
/usr/local/bin \
/usr/local/sbin
set -gx PKG_PATH "http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/"(uname -p)"/"(uname -r|cut -f '1 2' -d.|cut -f 1 -d_)"/All"

4
computers/rain/fish/env Normal file
View File

@ -0,0 +1,4 @@
set -gx CC clang
set -gx CXX clang++
set -gx GOPATH ~/go
set -gx RIPGREP_CONFIG_PATH ~/.config/ripgreprc

View File

@ -4,7 +4,7 @@ function build-hosts -d 'Builds /etc/hosts'
cd $_agw_dir_src/hosts
git pull
sudo sh -c "cat $_agw_dir_rc/applications/hosts > /etc/hosts"
sudo sh -c "cat $_agw_dir_rc/network/hosts > /etc/hosts"
sudo sh -c "cat $_agw_dir_src/hosts/hosts >> /etc/hosts"
end