0
0
mirror of https://github.com/rust-lang/rust.git synced 2024-12-01 13:18:54 +01:00
rust/doc/tutorial/test.sh
Marijn Haverbeke fedb775fbb Add hacks to extract and compile tutorial code
Not included in the build by default, since it's fragile and kludgy. Do
something like this to run it:

    cd doc/tutorial
    RUSTC=../../build/stage2/bin/rustc bash test.sh

Closes #1143
2011-11-22 16:12:23 +01:00

9 lines
168 B
Bash

#!/bin/bash
rm -f fragments/*.rs
mkdir -p fragments
node extract.js
for F in `ls fragments/*.rs`; do
$RUSTC $F > /dev/null
if [[ $? != 0 ]] ; then echo $F; fi
done