dissertation-4-dissertation/import-code.sh

20 lines
1.2 KiB
Bash
Raw Normal View History

2020-11-28 14:17:03 +00:00
#!/bin/bash
set -e
# Clean up previous code samples
2020-12-24 12:29:13 +00:00
rm /home/jake/repos/dissertation/4-dissertation/Preparation/Samples/* || true
2020-11-28 14:17:03 +00:00
rm /home/jake/repos/dissertation/4-dissertation/Implementation/Samples/* || true
2020-12-24 12:29:13 +00:00
# Copy code samples for preparation
2020-12-28 11:41:31 +00:00
printf "#include...\\n" > /home/jake/repos/dissertation/4-dissertation/Preparation/Samples/main.cpp
tail -n +17 /home/jake/repos/dissertation/1-language-tests/cpp/main.cpp >> /home/jake/repos/dissertation/4-dissertation/Preparation/Samples/main.cpp
2020-12-24 12:29:13 +00:00
cp /home/jake/repos/dissertation/1-language-tests/go/main.go /home/jake/repos/dissertation/4-dissertation/Preparation/Samples/
cp /home/jake/repos/dissertation/1-language-tests/rust/src/main.rs /home/jake/repos/dissertation/4-dissertation/Preparation/Samples/
2020-11-28 14:17:03 +00:00
# Copy code samples for implementation
cp /home/jake/repos/dissertation/2-code/udp/congestion.go /home/jake/repos/dissertation/4-dissertation/Implementation/Samples/
cp /home/jake/repos/dissertation/2-code/udp/wireshark_dissector.lua /home/jake/repos/dissertation/4-dissertation/Implementation/Samples/
2020-11-28 20:20:21 +00:00
cp /home/jake/repos/dissertation/2-code/proxy/mac.go /home/jake/repos/dissertation/4-dissertation/Implementation/Samples/
2020-11-28 14:17:03 +00:00