summaryrefslogtreecommitdiffstats
path: root/src/cmd
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-26 00:25:54 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-26 00:25:54 (EDT)
commit4020f12ff37dfdaf9cb8c2c372a85b68daa7ac71 (patch)
treea6e16700c952e1c299e7144ba4ee61fafc8e89dc /src/cmd
parent9700dd8643f8f2b1816a1b9a37d595d02801f86d (diff)
src/cmd/build.sh: Make some functions "static"
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/build.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cmd/build.sh b/src/cmd/build.sh
index a7b6701..87020ad 100644
--- a/src/cmd/build.sh
+++ b/src/cmd/build.sh
@@ -22,7 +22,7 @@ cmd_build_root=
cmd_build_pkg_dir=
cmd_build_build_deps=
-cmd_build_make_deps_pkg()
+_cmd_build_make_deps_pkg()
{
local pkg_dir=
@@ -45,7 +45,7 @@ cmd_build_make_deps_pkg()
rm -Rf -- "${pkg_dir}"
}
-cmd_build_fini()
+_cmd_build_fini()
{
local session_dir=
local f=
@@ -134,22 +134,22 @@ cmd_build_main()
fi
package_set_substvars "${arch}" "${plat}"
- if ! session_begin "${root}" "${cmd_build_pkg_dir}" cmd_build_fini false
- then
- cmd_build_fini
+ if ! session_begin "${root}" "${cmd_build_pkg_dir}" _cmd_build_fini \
+ false; then
+ _cmd_build_fini
[ "x${dev}" != 'x' ] && block_umount "${root}"
return 2
fi
cmd_build_build_deps="$(package_get_build_deps "${arch}" "${plat}")"
if [ "x${cmd_build_build_deps}" != 'x' ]; then
- cmd_build_make_deps_pkg
+ _cmd_build_make_deps_pkg
session_exec opkg install ../builddeps.opk
fi
session_exec opkbuild "${@}"
- cmd_build_fini
+ _cmd_build_fini
session_end