mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-20 20:55:50 +00:00
21 lines
422 B
Bash
21 lines
422 B
Bash
#!/bin/sh
|
|
|
|
# Copies a project from 'test-projects' into a folder that can be messed with
|
|
# without accidentally checking the results into version control.
|
|
|
|
set -e
|
|
|
|
if [ ! -d "test-projects/$1" ]
|
|
then
|
|
echo "Pick a project that exists!"
|
|
exit 1
|
|
fi
|
|
|
|
if [ -d "scratch-project/$1" ]
|
|
then
|
|
rm -rf "scratch-project/$1"
|
|
fi
|
|
|
|
mkdir -p scratch-project
|
|
cp -r "test-projects/$1" scratch-project
|
|
cargo run -- serve "scratch-project/$1" |