permit build one sample
This commit is contained in:
parent
4d6ad37810
commit
7315d2cba2
12
build.sh
12
build.sh
|
@ -78,7 +78,9 @@ function build.samples()
|
||||||
for file in ./samples/*.vala
|
for file in ./samples/*.vala
|
||||||
do
|
do
|
||||||
if [[ -f $file ]]; then
|
if [[ -f $file ]]; then
|
||||||
build.sample "$file"
|
if [ -z "$1" ] || [ "$1" == "$file" ]; then
|
||||||
|
build.sample "$file"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo -e "\n RESUME : "
|
echo -e "\n RESUME : "
|
||||||
|
@ -104,10 +106,14 @@ function build.sample()
|
||||||
# --------------------------------------------------------
|
# --------------------------------------------------------
|
||||||
function build.main()
|
function build.main()
|
||||||
{
|
{
|
||||||
|
local onefile=""
|
||||||
|
if [ ! -z "$1" ]; then
|
||||||
|
onefile="./samples/$1.vala"
|
||||||
|
fi
|
||||||
build.lib
|
build.lib
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
build.samples
|
build.samples $onefile
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
build.main
|
build.main "$1"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user