Changes Related to System Changes
This commit is contained in:
parent
fef4a68522
commit
464780c9b8
1 changed files with 3 additions and 3 deletions
6
add.sh
6
add.sh
|
@ -5,14 +5,14 @@ if [ $# -ne 2 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
/home/burnus/.cargo/bin/cargo new --lib day${1}_${2}
|
/usr/local/bin/cargo new --lib day${1}_${2}
|
||||||
cp -r ../day00/benches day${1}_${2}/
|
cp -r ../day00/benches day${1}_${2}/
|
||||||
cp -r ../day00/tests day${1}_${2}/
|
cp -r ../day00/tests day${1}_${2}/
|
||||||
cp ../day00/src/lib.rs day${1}_${2}/src/
|
cp ../day00/src/lib.rs day${1}_${2}/src/
|
||||||
cd day${1}_${2}
|
cd day${1}_${2}
|
||||||
echo '
|
echo '
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
criterion = "0.5.1"
|
# criterion = "0.5.1"
|
||||||
|
|
||||||
[[bench]]
|
[[bench]]
|
||||||
name = "test_benchmark"
|
name = "test_benchmark"
|
||||||
|
@ -20,6 +20,6 @@ harness = false' >> Cargo.toml
|
||||||
echo -e "use day${1}_${2}::run;\n$(cat benches/test_benchmark.rs)" > benches/test_benchmark.rs
|
echo -e "use day${1}_${2}::run;\n$(cat benches/test_benchmark.rs)" > benches/test_benchmark.rs
|
||||||
# echo 'intcode_processor = { path = "../common/intcode_processor" }' >> Cargo.toml
|
# echo 'intcode_processor = { path = "../common/intcode_processor" }' >> Cargo.toml
|
||||||
aocf checkout $1
|
aocf checkout $1
|
||||||
aocf brief > challenge.txt
|
aocf brief > challenge.md
|
||||||
aocf input > tests/challenge_input
|
aocf input > tests/challenge_input
|
||||||
/usr/local/bin/nvim src/lib.rs
|
/usr/local/bin/nvim src/lib.rs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue