forked from cxa/bs-containers-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmksrc.sh
More file actions
28 lines (27 loc) · 704 Bytes
/
mksrc.sh
File metadata and controls
28 lines (27 loc) · 704 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
#!/bin/sh
echo "Checking out ocaml-container..."
git submodule update --init
cd ocaml-containers
git checkout 2.3
echo "Making..."
make clean
make build
echo "Copying sources..."
rm -rf ../default/src/*
cp _build/default/src/core/*.ml ../src
cp _build/default/src/core/*.mli ../src
cp _build/default/src/monomorphic/*.ml ../src
cp _build/default/src/monomorphic/*.mli ../src
cd ../uchar/src
cp uchar.ml* ../../src
cd ../../src
cp ../result.ml ./
rm *Labels.ml*
rm CCIO.ml* # not needed
for i in *.ml; do sed -i.bak "/# /d" $i; done #Delete cppo lines
sed -i.bak "/IO/d" containers.ml
sed -i.bak "/Labels/d" containers.ml
echo "Copying LICENSE..."
rm *.bak
cp ../ocaml-containers/LICENSE ./
echo "Done."