1.1--- a/makefile Mon Nov 27 23:47:58 2023 -0500
1.2+++ b/makefile Fri Dec 01 23:20:45 2023 -0500
1.3@@ -6,7 +6,7 @@
1.4 SBCL_VERSION:=main
1.5 RUST_VERSION:=main
1.6 B:=build
1.7-D:=dist
1.8+D:=$(realpath dist)
1.9 SRC:=comp
1.10 SHELL=/bin/sh
1.11 UNAME=$(shell uname)
1.12@@ -19,7 +19,7 @@
1.13
1.14 all:linux emacs rocksdb sbcl rust code virt dist;
1.15
1.16-clean:clean-linux clean-code clean-dist;
1.17+clean:clean-linux clean-code clean-sbcl clean-dist;
1.18
1.19 ### Linux
1.20 LINUX_TARGET:=linux-$(LINUX_VERSION)
1.21@@ -32,7 +32,7 @@
1.22 cd build && unxz $@.tar.xz && tar -xvf $@.tar $(LINUX_TARGET)
1.23 linux-config:$(LINUX_TARGET);
1.24 cd build/$< && make mrproper -j && zcat /proc/config.gz > .config && yes N | make localmodconfig
1.25-clean-linux::;rm -rf build/$(LINUX_TARGET)*
1.26+clean-linux::;rm -rf build/$(LINUX_TARGET)
1.27
1.28 ### Emacs
1.29 EMACS_TARGET:=build/src/emacs-$(EMACS_VERSION)
1.30@@ -58,9 +58,20 @@
1.31 make shared_lib DISABLE_JEMALLOC=1
1.32
1.33 ### SBCL
1.34-SBCL_TARGET:=sbcl-$(SBCL_VERSION)
1.35+SBCL_TARGET:=build/src/sbcl-$(SBCL_VERSION)
1.36 sbcl:scripts/get-sbcl.sh;
1.37 $< $(SBCL_VERSION)
1.38+ cd $(SBCL_TARGET) && \
1.39+ echo '"2.3.12+main"' > version.lisp-expr && \
1.40+ sh make.sh \
1.41+ --without-gencgc \
1.42+ --with-mark-region-gc \
1.43+ --with-core-compression \
1.44+ --with-sb-xref-for-internals \
1.45+ --dynamic-space-size=4Gb \
1.46+ --fancy && \
1.47+ cd doc/manual && make
1.48+clean-sbcl:;rm -rf $(SBCL_TARGET)
1.49
1.50 ### Rust
1.51 RUST_TARGET:=build/src/rust-$(RUST_VERSION)
1.52@@ -82,7 +93,7 @@
1.53 code:scripts/get-code.sh
1.54 $< $(SRC)
1.55
1.56-clean-code::;rm -rf $(CODE_TARGET)/*
1.57+clean-code::;rm -rf $(CODE_TARGET)
1.58
1.59 ### Virt
1.60 dev-pod:virt/build-pod.sh
1.61@@ -113,6 +124,7 @@
1.62 cp -r $^ $@
1.63
1.64 dist/sbcl:sbcl;
1.65+ $(SBCL_TARGET)/install.sh --prefix=$(D)
1.66
1.67 dist/linux:linux;
1.68
2.1--- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2+++ b/scripts/arch-upgrade.sh Fri Dec 01 23:20:45 2023 -0500
2.3@@ -0,0 +1,2 @@
2.4+#!/bin/sh
2.5+pacman -Sy archlinux-keyring && pacman -Su
3.1--- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2+++ b/scripts/aws-set-env.sh Fri Dec 01 23:20:45 2023 -0500
3.3@@ -0,0 +1,3 @@
3.4+export AWS_ACCESS_KEY_ID="${1-}"
3.5+export AWS_SECRET_ACCESS_KEY="${2-}"
3.6+export AWS_DEFAULT_REGION="${3-us-east-1}"
4.1--- a/scripts/get-emacs.sh Mon Nov 27 23:47:58 2023 -0500
4.2+++ b/scripts/get-emacs.sh Fri Dec 01 23:20:45 2023 -0500
4.3@@ -1,5 +1,4 @@
4.4 #!/usr/bin/bash
4.5 VER="${1:-main}"
4.6-TARGETDIR=${2:-$(realpath build/emacs-$VER)}
4.7-
4.8+TARGETDIR=${2:-$(realpath build/src/emacs-$VER)}
4.9 git clone https://vc.compiler.company/packy/shed/vendor/emacs.git $TARGETDIR
5.1--- a/scripts/get-sbcl.sh Mon Nov 27 23:47:58 2023 -0500
5.2+++ b/scripts/get-sbcl.sh Fri Dec 01 23:20:45 2023 -0500
5.3@@ -1,11 +1,4 @@
5.4 #!/usr/bin/bash
5.5 VER="${1:-main}"
5.6-TARGETDIR=${2:-$(realpath build/sbcl-$VER)}
5.7-DISTDIR=${3:-$(realpath dist/sbcl)}
5.8+TARGETDIR=${2:-$(realpath build/src/sbcl-$VER)}
5.9 git clone https://vc.compiler.company/packy/shed/vendor/sbcl.git $TARGETDIR
5.10-pushd $TARGETDIR
5.11-sh make.sh --prefix=$DISTDIR --fancy
5.12-cd doc/manual && make && cd ../..
5.13-# doesn't actually install on local system - copies to DISTDIR
5.14-# sh install.sh
5.15-popd
6.1--- /dev/null Thu Jan 01 00:00:00 1970 +0000
6.2+++ b/scripts/print-colors.sh Fri Dec 01 23:20:45 2023 -0500
6.3@@ -0,0 +1,7 @@
6.4+#!/bin/sh
6.5+for C in {0..255}; do
6.6+ tput setab $C
6.7+ echo -n "$C "
6.8+done
6.9+tput sgr0
6.10+echo
7.1--- /dev/null Thu Jan 01 00:00:00 1970 +0000
7.2+++ b/scripts/record-gif.sh Fri Dec 01 23:20:45 2023 -0500
7.3@@ -0,0 +1,3 @@
7.4+#!/usr/bin/bash
7.5+# Wrapper for t-rec program
7.6+WINDOWID="${1}" t-rec -b transparent -qn -s 800ms -e 800ms --output "${2:-$(date +%s)}"
8.1--- /dev/null Thu Jan 01 00:00:00 1970 +0000
8.2+++ b/scripts/sbcl-save-core.sh Fri Dec 01 23:20:45 2023 -0500
8.3@@ -0,0 +1,8 @@
8.4+#!/bin/sh
8.5+# save an sbcl core image
8.6+FORM="(progn (ql:quickload :std) "
8.7+FORM+="${2}"
8.8+FORM+=" (save-lisp-and-die \""
8.9+FORM+="${1:-std.core}"
8.10+FORM+="\"))"
8.11+sbcl --noinform --non-interactive --eval "$FORM"
9.1--- /dev/null Thu Jan 01 00:00:00 1970 +0000
9.2+++ b/scripts/sc.sh Fri Dec 01 23:20:45 2023 -0500
9.3@@ -0,0 +1,2 @@
9.4+#!/bin/sh
9.5+import png:- >> ${1:-"$(date +%s).png"}
10.1--- /dev/null Thu Jan 01 00:00:00 1970 +0000
10.2+++ b/scripts/wg-gen-keys.sh Fri Dec 01 23:20:45 2023 -0500
10.3@@ -0,0 +1,4 @@
10.4+#!/bin/sh
10.5+# generate base64-enc keypair in current dir
10.6+umask 077
10.7+wg genkey | tee privatekey | wg pubkey > publickey