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
2021-03-31 13:56:20 +01:00
rm /home/jake/repos/dissertation/4-dissertation/2_Preparation/Samples/* || true
rm /home/jake/repos/dissertation/4-dissertation/3_Implementation/Samples/* || true
2020-11-28 14:17:03 +00:00
2020-12-24 12:29:13 +00:00
# Copy code samples for preparation
2021-03-31 13:56:20 +01:00
printf "#include...\\n" > /home/jake/repos/dissertation/4-dissertation/2_Preparation/Samples/main.cpp
tail -n +17 /home/jake/repos/dissertation/1-language-tests/cpp/main.cpp >> /home/jake/repos/dissertation/4-dissertation/2_Preparation/Samples/main.cpp
2020-12-28 11:41:31 +00:00
2021-03-31 13:56:20 +01:00
cp /home/jake/repos/dissertation/1-language-tests/go/main.go /home/jake/repos/dissertation/4-dissertation/2_Preparation/Samples/
cp /home/jake/repos/dissertation/1-language-tests/rust/src/main.rs /home/jake/repos/dissertation/4-dissertation/2_Preparation/Samples/
2020-12-24 12:29:13 +00:00
2020-11-28 14:17:03 +00:00
# Copy code samples for implementation
2021-03-31 13:56:20 +01:00
cp /home/jake/repos/dissertation/2-code/udp/congestion.go /home/jake/repos/dissertation/4-dissertation/3_Implementation/Samples/
cp /home/jake/repos/dissertation/2-code/udp/wireshark_dissector.lua /home/jake/repos/dissertation/4-dissertation/3_Implementation/Samples/
cp /home/jake/repos/dissertation/2-code/proxy/mac.go /home/jake/repos/dissertation/4-dissertation/3_Implementation/Samples/
2020-11-28 14:17:03 +00:00