Commit 9f829fde authored by Vitaly Lipatov's avatar Vitaly Lipatov

use load_mod to load internal modules

parent 43140b43
...@@ -63,10 +63,16 @@ if [ "$UID" = "0" ] ; then ...@@ -63,10 +63,16 @@ if [ "$UID" = "0" ] ; then
fatal "It is strict recommended do not use these scripts as root" fatal "It is strict recommended do not use these scripts as root"
fi fi
. $ETERBUILDDIR/functions/config
. $ETERBUILDDIR/functions/gettext
. $ETERBUILDDIR/functions/spec
load_mod()
{
local i
for i in $@ ; do
. $ETERBUILDDIR/functions/$i
done
}
load_mod config gettext spec
# Internal # Internal
set_target_type() set_target_type()
...@@ -198,11 +204,3 @@ add_changelog_helper() ...@@ -198,11 +204,3 @@ add_changelog_helper()
return $R return $R
} }
load_mod()
{
local i
for i in $@ ; do
. $ETERBUILDDIR/functions/$i
done
}
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