summaryrefslogtreecommitdiffstats
path: root/easy_e17.sh
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-11-10 08:09:41 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2011-11-10 08:09:41 +0100
commitdc3d128619a74ae2ad49db767606244d2f8ca17e (patch)
tree3136b5b49f1b4487492d140095cf2bf370d0a2c5 /easy_e17.sh
parent9cb9019e8ddcc7eb6d19921ab3caf7b16ab6cb45 (diff)
downloadbin-dc3d128619a74ae2ad49db767606244d2f8ca17e.zip
bin-dc3d128619a74ae2ad49db767606244d2f8ca17e.tar.gz
easy_e17.sh: fix find_local_path usage
Diffstat (limited to 'easy_e17.sh')
-rwxr-xr-xeasy_e17.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/easy_e17.sh b/easy_e17.sh
index 81c378e..71d5fc9 100755
--- a/easy_e17.sh
+++ b/easy_e17.sh
@@ -840,7 +840,7 @@ function parse_git_updates ()
updated_packages=""
for pkg in $effective_packages; do
[ "$pkg" == "ewebkit" ] && continue
- path=$(find_local_path $kpg)
+ path=$(find_local_path $pkg)
if [ `cat "$tmp_path/source_update.log" | egrep -q "^${path#$src_path}"; echo $?` == 0 ]; then
updated_packages="$updated_packages $pkg"
echo " - $pkg"
@@ -993,7 +993,7 @@ function run_command ()
function find_local_path ()
{
name=$1
- path=$(find $src_path -maxdepth 5 -type d -name $pkg | grep -v -E "^${src_path}$" | grep -v -E "$ignore_dirs_re" | \
+ path=$(find $src_path -maxdepth 5 -type d -name $name | grep -v -E "^${src_path}$" | grep -v -E "$ignore_dirs_re" | \
while read line; do echo `echo $line | wc -c` $line; done | sort -n | head -n 1 | cut -d " " -f 2)
if [ "$path" ]; then echo "$path"; fi
}
@@ -1008,7 +1008,7 @@ function compile ()
if [ "$name" == "ewebkit" ]; then
path=$ewk_src_path
else
- path=`find_local_path $name`
+ path=$(find_local_path $name)
fi
if [ ! -d "$path" ]; then
echo "SOURCEDIR NOT FOUND"