forked from Mirror/libstarlight
18 lines
253 B
Bash
Executable File
18 lines
253 B
Bash
Executable File
#!/bin/bash
|
|
function abort {
|
|
echo Make or send failed
|
|
exit
|
|
}
|
|
mode=send
|
|
if [ "$1" = "sc" ]; then
|
|
mode=send-cia
|
|
elif [ "$1" = "c" ]; then
|
|
mode=run
|
|
fi
|
|
cd libstarlight
|
|
make install || abort
|
|
cd ../testbed
|
|
make clean
|
|
make $mode || abort
|
|
cd ..
|