summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-10-03 22:28:23 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-10-03 22:28:23 (EDT)
commita0342a14350b1df59575c45b3b3d51f2338d87e2 (patch)
tree4211cb787b6cb2576921ccca857b12e1a1b3027a /src
parentc912c66a935b0b1fa99e7c24ec5334dc2a363071 (diff)
Fix some issues in ob-buildopk.
Diffstat (limited to 'src')
-rw-r--r--src/ob-buildopk.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ob-buildopk.sh b/src/ob-buildopk.sh
index a79d37b..961b30a 100644
--- a/src/ob-buildopk.sh
+++ b/src/ob-buildopk.sh
@@ -40,6 +40,7 @@ main()
build_opk "${pkg}" "${OB_BINARY_VERSION}"
done
fi
+ rm debian-binary
}
build_opk()
@@ -47,12 +48,12 @@ build_opk()
binary="${1}"
version="${2}"
- (cd ${binary}.data && tar -czf '../data.tar.gz')
- (cd ${binary}.control && tar -czf '../control.tar.gz')
+ (cd "${binary}.data" && tar -czf '../data.tar.gz' '.')
+ (cd "${binary}.control" && tar -czf '../control.tar.gz' '.')
tar -czf ../../${binary}_${version}_all.opk \
debian-binary data.tar.gz control.tar.gz
- rm -Rf debian-binary control data.tar.gz control.tar.gz
+ rm -Rf control data.tar.gz control.tar.gz
}
main "${@}"