20 lines
1.2 KiB
Bash
20 lines
1.2 KiB
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
# Clean up previous code samples
|
|
rm /home/jake/repos/dissertation/4-dissertation/2_Preparation/Samples/* || true
|
|
rm /home/jake/repos/dissertation/4-dissertation/3_Implementation/Samples/* || true
|
|
|
|
# Copy code samples for preparation
|
|
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
|
|
|
|
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/
|
|
|
|
# Copy code samples for implementation
|
|
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/
|
|
|