summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-10-08 15:21:11 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-10-08 15:21:11 (EDT)
commiteb2b1217702bbb8409697f968e31a768f7e77d6b (patch)
tree3ef01a69f5427f7dd659da99f72074d13b790ba1
parent808f7af76455037e2866bccc5a0c05567736fa89 (diff)
Run ob-{installdocs,gencontrol,buildopk} as UID 0.
-rw-r--r--src/opkbuild.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/opkbuild.sh b/src/opkbuild.sh
index 5892606..27042ab 100644
--- a/src/opkbuild.sh
+++ b/src/opkbuild.sh
@@ -319,7 +319,12 @@ build()
case "${opt_target}" in
'')
../build build
- ${opt_uid0_cmd} ../build install
+ ${opt_uid0_cmd} sh -s <<-EOF
+ ../build install
+ ob-installdocs
+ ob-gencontrol
+ ob-buildopk
+ EOF
;;
'install'|'install-'*)
${opt_uid0_cmd} ../build "${opt_target}"
@@ -329,10 +334,6 @@ build()
;;
esac
- ob-installdocs
- ob-gencontrol
- ob-buildopk
-
ob-genchanges
}