File tree 1 file changed +34
-0
lines changed
1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+ source " $( dirname " ${BASH_SOURCE[0]} " ) /utils.sh"
5
+
6
+ M4_VERSION=1.4.19
7
+ M4_SHA256SUM=63aede5c6d33b6d9b13511cd0be2cac046f2e70fd0a07aa9573a04a82783af96
8
+ BISON_VERSION=3.8.2
9
+ BISON_SHA256SUM=9bba0214ccf7f1079c5d59210045227bcf619519840ebfa80cd3849cff5a5bf2
10
+
11
+ # Build m4
12
+ wget --no-check-certificate https://ftp.gnu.org/gnu/m4/m4-$M4_VERSION .tar.xz
13
+ verify_checksum m4-$M4_VERSION .tar.xz $M4_SHA256SUM
14
+
15
+ tar --extract --file m4-$M4_VERSION .tar.xz
16
+ cd m4-$M4_VERSION
17
+ ./configure --prefix=" ${PREFIX} "
18
+ make
19
+ make install
20
+ cd ..
21
+ rm --recursive --force m4-$M4_VERSION
22
+
23
+ # Build bison
24
+ wget --no-check-certificate https://ftp.gnu.org/gnu/bison/bison-$BISON_VERSION .tar.xz
25
+ verify_checksum bison-$BISON_VERSION .tar.xz $BISON_SHA256SUM
26
+
27
+ tar --extract --file bison-$BISON_VERSION .tar.xz
28
+ cd bison-$BISON_VERSION
29
+ ./configure --prefix=" ${PREFIX} " M4=" ${PREFIX} /bin/m4"
30
+ make install
31
+ cd ..
32
+ rm --recursive --force bison-$BISON_VERSION
33
+
34
+ package bison $BISON_VERSION
You can’t perform that action at this time.
0 commit comments