changeset 12: |
406b7640f3e4 |
parent 11: |
fdc215fe9f17 |
child 13: |
cb700df303f7 |
author: |
ellis <ellis@rwest.io> |
date: |
Fri, 24 Nov 2023 18:10:11 -0500 |
files: |
makefile readme.org scripts/get-rocksdb.sh scripts/get-sbcl.sh |
description: |
script cleanup |
1.1--- a/makefile Fri Nov 24 04:35:42 2023 -0500
1.2+++ b/makefile Fri Nov 24 18:10:11 2023 -0500
1.3@@ -29,7 +29,7 @@
1.4 $< $(LINUX_VERSION) build build/$@/keyring.gpg
1.5 cd build && unxz $@.tar.xz && tar -xvf $@.tar $(LINUX_TARGET)
1.6 linux-config:$(LINUX_TARGET);
1.7- cd build/$< && make mrproper -j && zcat /proc/config.gz > .config && make localmodconfig
1.8+ cd build/$< && make mrproper -j && zcat /proc/config.gz > .config && yes N | make localmodconfig
1.9 linux-clean::;rm -rf build/$(LINUX_TARGET)*
1.10
1.11 ### Emacs
1.12@@ -55,6 +55,7 @@
1.13 ### Code
1.14 code:scripts/get-code.sh
1.15 $< $(SRC)
1.16+
1.17 code-clean::;rm -rf build/$(SRC)*
1.18
1.19 ### Virt
1.20@@ -85,6 +86,14 @@
1.21 dist/cdn:cdn
1.22 cp -r $^ $@
1.23
1.24-dist:dist/code dist/cdn
1.25+dist/sbcl:sbcl;
1.26+
1.27+dist/linux:linux;
1.28+
1.29+dist/rocksdb:rocksdb;
1.30+
1.31+dist/emacs:emacs;
1.32+
1.33+dist:dist/code dist/cdn dist/sbcl dist/linux dist/rocksdb
1.34
1.35 dist-clean::;rm -rf dist/*
2.1--- a/readme.org Fri Nov 24 04:35:42 2023 -0500
2.2+++ b/readme.org Fri Nov 24 18:10:11 2023 -0500
2.3@@ -6,3 +6,11 @@
2.4
2.5 This project contains scripts, utils, and applications used to
2.6 host and maintain The Compiler Company infrastructure.
2.7+
2.8+* Usage
2.9+#+begin_src shell
2.10+# ( linux emacs rocksdb sbcl rust code virt dist )
2.11+make
2.12+make install
2.13+# make deploy
2.14+#+end_src
3.1--- a/scripts/get-rocksdb.sh Fri Nov 24 04:35:42 2023 -0500
3.2+++ b/scripts/get-rocksdb.sh Fri Nov 24 18:10:11 2023 -0500
3.3@@ -1,8 +1,10 @@
3.4 #!/usr/bin/bash
3.5 VER="${1:-main}"
3.6 TARGETDIR=${2:-$(realpath build/rocksdb-$VER)}
3.7+DISTDIR=${3:-$(realpath dist)}
3.8+mkdir -pv dist/include
3.9 git clone https://vc.compiler.company/packy/shed/vendor/rocksdb.git $TARGETDIR
3.10 pushd $TARGETDIR
3.11-make shared_lib
3.12-sudo make install
3.13+make shared_lib DISABLE_JEMALLOC=1 &&
3.14+cp -r librocksdb.so include/* $DISTDIR
3.15 popd
4.1--- a/scripts/get-sbcl.sh Fri Nov 24 04:35:42 2023 -0500
4.2+++ b/scripts/get-sbcl.sh Fri Nov 24 18:10:11 2023 -0500
4.3@@ -1,8 +1,11 @@
4.4 #!/usr/bin/bash
4.5 VER="${1:-main}"
4.6 TARGETDIR=${2:-$(realpath build/sbcl-$VER)}
4.7+DISTDIR=${3:-$(realpath dist/sbcl)}
4.8 git clone https://vc.compiler.company/packy/shed/vendor/sbcl.git $TARGETDIR
4.9 pushd $TARGETDIR
4.10-make
4.11-sudo make install
4.12+sh make.sh --prefix=$DISTDIR --fancy \
4.13+ # && cd tests && sh run-tests.sh && cd .. \ ## TODO futex fails
4.14+ && cd doc/manual && make && cd ../.. \
4.15+ && sh install.sh
4.16 popd