Skip to content

Commit

Permalink
Fixed cases preparation
Browse files Browse the repository at this point in the history
  • Loading branch information
mapio committed Nov 25, 2020
1 parent 02d0ead commit 810260b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions scythe/bin/scythe-prepare
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ n=1
for e in $(tail -n +2 "$EXERCISES"); do
echo3 "$e"
dst=$(printf '%s/bundle/%02d-%s' "$tempdir" $n "$e")
src=$(printf '%s/src/%02d-%s' "$tempdir" $n "$e")
src=$(printf '%s/src/%02d-%s' "$tempdir" $n "$e")
mkdir "$dst" "$src"
if ls "$EXERCISES_DIR/$e/"*.md >/dev/null 2>&1; then
convert_mds "$EXERCISES_DIR/$e" "$dst"
Expand All @@ -22,13 +22,13 @@ for e in $(tail -n +2 "$EXERCISES"); do
if ls "$EXERCISES_DIR/$e/"*.txt >/dev/null 2>&1; then
cp "$EXERCISES_DIR/$e/"*.txt "$dst/"
fi
for f in "$EXERCISES_DIR/$e/"*.java; do
sed '/package .*;/d' "$f" > "$src/$(basename $f)"
done
for f in "$EXERCISES_DIR/$e/"*.java; do
sed '/package .*;/d' "$f" > "$src/$(basename $f)"
done
if [ -r "$src/"TestRunner.java ]; then
cp "$src/"TestRunner.java "$dst/"
fi
if ! sf generate -t 2 -fs "$src" -e "$dst"; then
if ! sf generate -t 2 -f -c "$EXERCISES_DIR/$e/" -s "$src" -e "$dst"; then
echo2 "Warning: solution has not been compiled"
fi
n=$(( n + 1 ))
Expand Down
2 changes: 1 addition & 1 deletion scythe/confs.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# current version

export SCYTHE_VERSION=1.3.1
export SCYTHE_VERSION=1.3.2

# tool dirs

Expand Down

0 comments on commit 810260b

Please sign in to comment.