Separate lib, new problems and script for web
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
# usaco template/tpl <name>
|
||||
[[ $# -ge 1 ]] || usage
|
||||
dir="$(find_problem "$1")"
|
||||
[[ -f "$dir/main.cpp" ]] && cp "$dir/main.cpp" "$dir/main.cpp.bak" && echo "Backed up old main.cpp -> main.cpp.bak"
|
||||
cp "$ROOT/template.cpp" "$dir/main.cpp"
|
||||
echo "Refreshed $dir/main.cpp from template"
|
||||
Reference in New Issue
Block a user