File tree Expand file tree Collapse file tree 4 files changed +8
-2
lines changed Expand file tree Collapse file tree 4 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ bin/configlet
7
7
bin /configlet.exe
8
8
bin /exercise
9
9
bin /exercise.exe
10
+ bin /generator-utils /ngram
10
11
exercises /* /* /Cargo.lock
11
12
exercises /* /* /clippy.log
12
13
canonical_data.json
Original file line number Diff line number Diff line change @@ -54,7 +54,12 @@ ${unimplemented_exercises}"
54
54
55
55
# Find closest match to typed-in not-found slug
56
56
# see util/ngram for source
57
- echo " ${YELLOW} $( bin/generator-utils/ngram " ${unimplemented_exercises} " " $slug " ) ${RESET} "
57
+ # First it builds a binary for the system of the contributor
58
+ if [ -e bin/generator-utils/ngram ]; then
59
+ echo " ${YELLOW} $( bin/generator-utils/ngram " ${unimplemented_exercises} " " $slug " ) ${RESET} "
60
+ else
61
+ cd util/ngram && ./build && cd ../.. && echo " ${YELLOW} $( bin/generator-utils/ngram " ${unimplemented_exercises} " " $slug " ) ${RESET} "
62
+ fi
58
63
59
64
exit 1
60
65
fi
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
- cargo build --release && cp ./target/release/ngram ../../bin/generator-utils && rm -rf ./target
2
+ cargo build --release --quiet && cp ./target/release/ngram ../../bin/generator-utils && rm -rf ./target
You can’t perform that action at this time.
0 commit comments