-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·40 lines (35 loc) · 858 Bytes
/
bootstrap.sh
File metadata and controls
executable file
·40 lines (35 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh -e
mkdir -p build
cd build
wget -nc https://ftp.gnu.org/gnu/guile/guile-3.0.7.tar.xz
rm -rf guile-3.0.7
tar xfvJ guile-3.0.7.tar.xz
cd guile-3.0.7
sha256sum module/ice-9/psyntax-pp.scm | tee psyntax-pp.sha256
rm module/ice-9/psyntax-pp.scm
## now let us prepare to rebuild it
echo '(primitive-load-path "psyntax-bootstrap/allsteps")' >module/ice-9/psyntax-pp.scm
mkdir -p module/psyntax-bootstrap
cp ../../psyntax-bootstrap/*.scm module/psyntax-bootstrap
cd module/ice-9
cp psyntax.scm psyntax-patched.scm
patch <../../../../stage2.patch
cd ../..
## rebuild it
./configure --prefix=/tmp
make config.h
make libguile/scmconfig.h
make .version
cd lib
make all
cd ../meta
make all
cd ../libguile
make all
cd ../module
make ice-9/psyntax-pp.scm.gen
cd ..
## verify it
sha256sum module/ice-9/psyntax-pp.scm
sha256sum -c psyntax-pp.sha256
## DONE ##