Commit 09b7e9f4 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add get_gear_spec functions and test for it

parent e39b9279
......@@ -187,3 +187,14 @@ set_specdir()
SPECDIR=`pwd`
fi
}
# search for gear spec
get_gear_spec()
{
local trySpec
trySpec=$(echo *.spec)
[ -f "$trySpec" ] || trySpec=`echo $(get_root_git_dir)/*.spec`
[ -f "$trySpec" ] || trySpec=""
echo $trySpec
test -f "$trySpec"
}
#!/bin/sh
. `dirname $0`/../share/eterbuild/functions/common
load_mod spec
get_gear_spec
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment