From f5094a6b99ab893c97a69cb7e9e6a9d9dc0728b5 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 21 Jan 2012 12:15:05 -0500 Subject: Use control fields library. --- (limited to 'src/oh-buildopk') diff --git a/src/oh-buildopk b/src/oh-buildopk index bcea2c0..03ae59d 100644 --- a/src/oh-buildopk +++ b/src/oh-buildopk @@ -19,6 +19,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +. @@LIBDIR@@/opkhelper/controlfields + print_usage() { printf 'Usage: %s pkgname...\n' "$1" @@ -43,7 +45,7 @@ while [ ${#} -gt 0 ]; do tar -czf ../control.tar.gz . cd .. # Pack opk file. - tar -czf ../../${1}_pkgver-pkgrev_arch.opk \ + tar -czf ../../${1}_$(oh_get_field ${1} Version)_arch.opk \ debian-binary data.tar.gz control.tar.gz rm -Rf debian-binary control data.tar.gz control.tar.gz shift -- cgit v0.9.1