Skip to content

Commit 5e1e7ee

Browse files
author
Jason Mobarak
committed
Add script to build example code inside docker
1 parent aaa7b5b commit 5e1e7ee

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
output/
2+
build/

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.*.sw?
22
build/
3+
output/

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ before_install:
1616

1717
script:
1818
- ./build.bash
19-
- PATH=/opt/llvm-obfuscator/bin:$PATH make -C example
19+
- ./build_example.bash
2020

2121
after_success:
2222
- tar -C output -czf llvm-obfuscated-arm.tgz .

build_example.bash

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
mkdir -p build
4+
mkdir -p output/opt
5+
6+
docker run -i -t --rm \
7+
-v $PWD/example:/work/example \
8+
-v $PWD/build:/work/build \
9+
-v $PWD/output/opt:/opt \
10+
arm-llvm-obf:base \
11+
/bin/bash -c "export PATH=/opt/llvm-obfuscator/bin:\$PATH; \
12+
make -C example"

0 commit comments

Comments
 (0)