live-bootstrap/sysa/after.kaem.run

139 lines
2.6 KiB
Plaintext
Raw Normal View History

2020-12-23 06:02:57 +00:00
#!/bin/sh
# Copyright © 2020 fosslinux
#
# This file is part of live-bootstrap.
#
# live-bootstrap is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or (at
# your option) any later version.
#
# live-bootstrap is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with live-bootstrap. If not, see <http://www.gnu.org/licenses/>.
set -ex
2020-12-23 06:02:57 +00:00
PATH=/after/bin:/bin
2021-01-20 01:43:40 +00:00
# Set commonly used variables
prefix=/after
bindir=${prefix}/bin
libdir=${prefix}/lib
incdir=${prefix}/include
MES_PREFIX=${prefix}/mes/src/mes
GUILE_LOAD_PATH=${prefix}/mes/src/nyacc/module:${prefix}/mes/src/mes/mes/module:${prefix}/mes/src/mes/module
# Part 2: cp and chown (mescc-tools-extra)
2021-01-20 01:43:40 +00:00
pkg="mescc-tools-extra"
cd ${pkg}
kaem --file ${pkg}.kaem
cd ..
# Part 3: Remove remaining dependencies on / (root of /after)
2021-01-20 01:43:40 +00:00
cp ../bin/hex2 bin/hex2
cp ../bin/M1 bin/M1
cp ../bin/M2-Planet bin/M2-Planet
cp ../bin/blood-elf bin/blood-elf
cp ../bin/get_machine bin/get_machine
cp ../bin/mes-m2 bin/mes-m2
cp ../bin/kaem bin/kaem
cp ../catm bin/catm
chmod 755 bin/hex2 bin/M1 bin/M2-Planet bin/blood-elf \
bin/get_machine bin/mes-m2 bin/kaem bin/catm
2021-01-20 01:43:40 +00:00
PATH=/after/bin
# Part 4: blynn-compiler
2021-01-20 01:43:40 +00:00
pkg="blynn-compiler"
cd ${pkg}
kaem --file ${pkg}.kaem
2020-12-23 06:02:57 +00:00
cd ..
# Part 5: mes
2021-01-20 01:43:40 +00:00
pkg="mes"
cd ${pkg}
kaem --file ${pkg}.kaem
cd ..
# Part 6: tcc 0.9.26
pkg="tcc-0.9.26"
cd ${pkg}
kaem --file ${pkg}.kaem
cd ..
2021-01-20 01:43:40 +00:00
# Part 7: tcc 0.9.27
pkg="tcc-0.9.27"
cd ${pkg}
kaem --file ${pkg}.kaem
cd ..
2021-01-10 21:22:30 +00:00
2021-01-20 01:43:40 +00:00
# Part 8: sed
pkg="sed-4.0.7"
cd ${pkg}
kaem --file ${pkg}.kaem
2021-01-10 21:22:30 +00:00
cd ..
2021-01-11 20:43:42 +00:00
# Part 9: tar
2021-01-20 01:43:40 +00:00
pkg="tar-1.12"
cd ${pkg}
kaem --file ${pkg}.kaem
2021-01-11 20:43:42 +00:00
cd ..
2021-01-11 20:44:07 +00:00
# Part 10: gzip
2021-01-20 01:43:40 +00:00
pkg="gzip-1.2.4"
cd ${pkg}
kaem --file ${pkg}.kaem
2021-01-11 20:44:07 +00:00
cd ..
2021-01-11 20:52:52 +00:00
2021-02-06 00:16:32 +00:00
# Part 11: patch
2021-01-20 01:43:40 +00:00
pkg="patch-2.5.9"
cd ${pkg}
kaem --file ${pkg}.kaem
2021-01-13 10:51:31 +00:00
cd ..
2021-01-14 10:45:36 +00:00
2021-02-06 00:16:32 +00:00
# Part 12: mes-libc-patched
2021-01-14 10:45:36 +00:00
cd tcc-0.9.27
kaem --file mes-libc-patched.kaem
2021-01-14 10:45:36 +00:00
cd ..
2021-01-14 10:47:08 +00:00
2021-02-06 00:16:32 +00:00
# Part 13: tcc-patched
2021-01-29 16:43:10 +00:00
cd tcc-0.9.27
kaem --file tcc-patched.kaem
2021-01-29 16:43:10 +00:00
cd ..
2021-02-06 00:16:32 +00:00
# Part 14: make
2021-01-20 01:43:40 +00:00
pkg="make-3.80"
cd ${pkg}
kaem --file ${pkg}.kaem
2021-01-14 10:47:08 +00:00
cd ..
2021-01-13 22:29:23 +00:00
2021-02-06 00:16:32 +00:00
# Part 15: bzip2
2021-01-20 01:43:40 +00:00
pkg="bzip2-1.0.8"
cd ${pkg}
kaem --file ${pkg}.kaem
2021-01-13 22:29:23 +00:00
cd ..
2021-01-15 01:23:03 +00:00
2021-02-06 00:16:32 +00:00
# Part 16: coreutils
2021-01-20 19:23:48 +00:00
pkg="coreutils-5.0"
cd ${pkg}
kaem --file ${pkg}.kaem
cd ..
2021-02-06 00:16:32 +00:00
# Part 17: heirloom-devtools
2021-01-26 21:30:45 +00:00
pkg="heirloom-devtools-070527"
cd ${pkg}
kaem --file ${pkg}.kaem
cd ..
2021-02-06 00:16:32 +00:00
# Part 18: bash
2021-01-20 01:43:40 +00:00
pkg="bash-2.05b"
cd ${pkg}
kaem --file ${pkg}.kaem
2021-01-15 01:19:43 +00:00
cd ..
2021-01-29 01:31:56 +00:00
bash run.sh