summaryrefslogtreecommitdiff
path: root/exec.sh
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2009-02-22 17:56:05 +0000
committerJay Freeman <saurik@saurik.com>2009-02-22 17:56:05 +0000
commit6195d43770e6f414e9262fcd3ee98786f39c47b6 (patch)
tree07fc2e36db35c8c08acb90aab07141eb90818eea /exec.sh
parent19e33c3fd336131c7679e3d7d1a6022775e3bc83 (diff)
Finished implementing exec.sh's dependency cutter.
git-svn-id: http://svn.telesphoreo.org/trunk@551 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'exec.sh')
-rwxr-xr-xexec.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/exec.sh b/exec.sh
index c7bf7c995..f1c19b4a5 100755
--- a/exec.sh
+++ b/exec.sh
@@ -20,12 +20,14 @@ case "${PKG_NAME}" in
(-) deps=();;
(:*) deps=(${PKG_NAME//:/ });;
(*) deps=($({
- find -L "${PKG_DATA}"/_metadata -name '*.dep' | cut -d '/' -f -
+ find -L "${PKG_DATA}"/_metadata -name '*.dep' -exec basename {} .dep \;
} | sort -u));;
esac
for dep in ${deps[@]}; do
- DEP_NAME=$(basename "${dep}" .dep)
+ # XXX: bother dealing with weird arguments?
+ #DEP_NAME=$(basename "${dep}" .dep)
+ DEP_NAME=${dep}
DEP_DEST=$(PKG_DEST_ "${DEP_NAME}")
PKG_PATH=${PKG_PATH}:${DEP_DEST}