summaryrefslogtreecommitdiff
path: root/scripts/ipkg-make-index.sh
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-12-01 22:42:20 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-12-01 22:42:20 +0100
commitd9730197219dda09ba7a0d5321c399e0d11d23e7 (patch)
tree25e92753ba3a5beeb2785fe9508bdafa11538ea2 /scripts/ipkg-make-index.sh
parentb252f7521306c28b8c46f3981cf4ea26d7993625 (diff)
fix ipkg and ipkg tools, consolidate mdev.conf
cpio under macosx or bsd creates tar archives via stdin while using find . with leading ./. heirloom cpio shipped with OpenADK does remove the leading ./. Adopt ipkg busybox applet to work without ./. Fix ipkg-build to be faster and to use included cpio for inner tar creation. Dependency to GNU tar can now be dropped.
Diffstat (limited to 'scripts/ipkg-make-index.sh')
-rw-r--r--scripts/ipkg-make-index.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/ipkg-make-index.sh b/scripts/ipkg-make-index.sh
index 927e67b93..5738e9983 100644
--- a/scripts/ipkg-make-index.sh
+++ b/scripts/ipkg-make-index.sh
@@ -3,7 +3,7 @@ set -e
pkg_dir=$1
if [[ -z $pkg_dir || ! -d $pkg_dir ]]; then
- echo "Usage: ipkg-make-index <package_directory>"
+ echo "Usage: ipkg-make-index.sh <package_directory>"
exit 1
fi
@@ -13,7 +13,7 @@ find "$pkg_dir" -name '*.ipk' | sort | while IFS= read pkg; do
file_size=$(ls -l $pkg | awk '{print $5}')
md5sum=$(md5sum $pkg)
tar -xzOf "$pkg" ./control.tar.gz | \
- tar -xzOf - ./control | \
+ tar -xzOf - control | \
sed -e "s^Description:Filename: $dpkg\\
Size: $file_size\\
MD5Sum: ${md5sum%% *}\\