Kaydet (Commit) 381867d8 authored tarafından Your Name's avatar Your Name

function declaration fix

üst 19d48415
......@@ -3,22 +3,23 @@ if [ "$(ls -F $WORKDIR | grep \/$ | wc -l)" == "1" ] ; then
export WORKDIR="$WORKDIR/$(ls -F $WORKDIR | grep \/$)"
fi
info "Single source detected: new workdir => $WORKDIR"
if fn_exists "_setup" && fn_exists "_build" && fn_exists "_install" ; then
msg ">>Function checking done"
else
if [ "$BuildType" != "" ] ; then
info "Build Type found."
elif [ -f "$WORKDIR/meson.build" ] ; then
BuildType="meson"
elif [ -f "$WORKDIR/CMakeLists.txt" ] ; then
BuildType="cmake"
elif [ -f "$WORKDIR/setup.py" ] ; then
BuildType="python"
elif [ -f "$WORKDIR/configure" ] ; then
BuildType="autotools"
else
err "Some functions missing or unibuild could not detected build type!!!"
exit 127
fi
_setup(){
true
}
_build(){
true
}
_install(){
true
}
if [ "$BuildType" != "" ] ; then
info "Build Type found."
elif [ -f "$WORKDIR/meson.build" ] ; then
BuildType="meson"
elif [ -f "$WORKDIR/CMakeLists.txt" ] ; then
BuildType="cmake"
elif [ -f "$WORKDIR/setup.py" ] ; then
BuildType="python"
elif [ -f "$WORKDIR/configure" ] ; then
BuildType="autotools"
fi
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