summaryrefslogtreecommitdiffstats
path: root/src/oh-buildopk
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-01-21 11:40:36 (EST)
committer P. J. McDermott <pjm@nac.net>2012-01-21 11:40:36 (EST)
commit0417faa1797e2cbe1793386bfc159391f919357d (patch)
treea2ab2a6f676033afc9ee2ae023a32073037386f6 /src/oh-buildopk
parentc7b99a74f43671dce10fa582d5db284c192984dc (diff)
Adjust oh-buildopk and opkbuild for oh-gencontrol.
Diffstat (limited to 'src/oh-buildopk')
-rw-r--r--src/oh-buildopk8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/oh-buildopk b/src/oh-buildopk
index d743824..bcea2c0 100644
--- a/src/oh-buildopk
+++ b/src/oh-buildopk
@@ -39,13 +39,7 @@ while [ ${#} -gt 0 ]; do
tar -czf ../data.tar.gz .
cd ..
# Pack control.tar.gz.
- mkdir control
- cp ../${1}.pkg/control control
- [ -f ../${1}.pkg/preinst ] && cp ../${1}.pkg/preinst control
- [ -f ../${1}.pkg/postinst ] && cp ../${1}.pkg/postinst control
- [ -f ../${1}.pkg/prerm ] && cp ../${1}.pkg/prerm control
- [ -f ../${1}.pkg/postrm ] && cp ../${1}.pkg/postrm control
- cd control
+ cd ${1}.control
tar -czf ../control.tar.gz .
cd ..
# Pack opk file.