permit build one sample
This commit is contained in:
parent
4d6ad37810
commit
7315d2cba2
10
build.sh
10
build.sh
|
@ -78,8 +78,10 @@ function build.samples()
|
||||||
for file in ./samples/*.vala
|
for file in ./samples/*.vala
|
||||||
do
|
do
|
||||||
if [[ -f $file ]]; then
|
if [[ -f $file ]]; then
|
||||||
|
if [ -z "$1" ] || [ "$1" == "$file" ]; then
|
||||||
build.sample "$file"
|
build.sample "$file"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
echo -e "\n RESUME : "
|
echo -e "\n RESUME : "
|
||||||
for t in $resume; do
|
for t in $resume; do
|
||||||
|
@ -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