Skip to content

Commit

Permalink
Add new samples to install.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
GJDuck committed Sep 3, 2023
1 parent 8b01ef1 commit e0f0d3c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,14 @@ mkdir -p "./usr/share/e9tool/include/"
cp "../../src/e9tool/e9tool.h" "./usr/share/e9tool/include/"
cp "../../src/e9tool/e9plugin.h" "./usr/share/e9tool/include/"
mkdir -p "./usr/share/e9tool/examples/"
cp "../../examples/bounds.c" "./usr/share/e9tool/examples/"
cat "../../examples/bounds.sh" | \
sed 's/.\/e9compile.sh examples\/bounds.c/e9compile \/usr\/share\/e9tool\/examples\/bounds.c/' | \
sed 's/\.\/e9tool/e9tool/' > "./usr/share/e9tool/examples/bounds.sh"
chmod a+x "./usr/share/e9tool/examples/bounds.sh"
cp "../../examples/cfi.c" "./usr/share/e9tool/examples/"
cp "../../examples/count.c" "./usr/share/e9tool/examples/"
cp "../../examples/cov.c" "./usr/share/e9tool/examples/"
cp "../../examples/delay.c" "./usr/share/e9tool/examples/"
cp "../../examples/hello.c" "./usr/share/e9tool/examples/"
cp "../../examples/limit.c" "./usr/share/e9tool/examples/"
Expand Down

0 comments on commit e0f0d3c

Please sign in to comment.