15 lines
473 B
Plaintext
15 lines
473 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
# Copying and distribution of this file, with or without modification, are
|
||
|
# permitted in any medium without royalty provided the copyright notice and this
|
||
|
# notice are preserved. This file is offered as-is, without any warranty.
|
||
|
|
||
|
# Hook to compile Rust source files when they have been changed.
|
||
|
|
||
|
for file in \
|
||
|
$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD |\
|
||
|
sed -n -e 's/src\///' -e 's/\.rs//p')
|
||
|
do
|
||
|
cargo build --release --bin "$file"
|
||
|
done
|