diff options
author | Koen Kooi <koen@openembedded.org> | 2005-06-30 08:19:37 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-06-30 08:19:37 +0000 |
commit | c8e5702127e507e82e6f68a4b8c546803accea9d (patch) | |
tree | 00583491f40ecc640f2b28452af995e3a63a09d7 /packages/sharp-binary-only/sharp-compat-libs/hentges.patch | |
parent | 87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff) |
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/sharp-binary-only/sharp-compat-libs/hentges.patch')
-rw-r--r-- | packages/sharp-binary-only/sharp-compat-libs/hentges.patch | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/packages/sharp-binary-only/sharp-compat-libs/hentges.patch b/packages/sharp-binary-only/sharp-compat-libs/hentges.patch index e69de29bb2..2b263fc426 100644 --- a/packages/sharp-binary-only/sharp-compat-libs/hentges.patch +++ b/packages/sharp-binary-only/sharp-compat-libs/hentges.patch @@ -0,0 +1,99 @@ +--- oz-compat-0.5/opt/QtPalmtop.compat/bin/makecompat.orig 2004-11-30 18:51:45.000000000 +0100 ++++ oz-compat-0.5//opt/QtPalmtop.compat/bin/makecompat 2004-11-30 18:44:29.000000000 +0100 +@@ -1,8 +1,10 @@ + #! /bin/sh + ++export PATH="$PATH:/opt/QtPalmtop/bin" ++ + OPIE_SH=/opt/QtPalmtop/bin/opie-sh + OPIE_DIR=/opt/QtPalmtop +-OPIE_COMPAT=runcompat ++OPIE_COMPAT=/opt/QtPalmtop/bin/runcompat + OPIE_TMP=/tmp + + about() { +@@ -31,6 +33,10 @@ + } + + ask_list() { ++ ++ rm $OPIE_TMP/mc.names ++ rm $OPIE_TMP/mc.map ++ + # Figure out which app groups are + GROUP=`ls $OPIE_DIR/apps \ + | grep -v Setting \ +@@ -38,39 +44,55 @@ + | $OPIE_SH -g -i -M "Select which group" -l -F \ + | sed -e"s/Pim/1Pim/g"` + ++ echo -e "\n\n---------- DEBUGGING OUTPUT ----------\n" ++ + for i in $OPIE_DIR/apps/$GROUP/*.desktop ; do + # Extract the name and what is run +- EXEC=`grep "Exec=" $i | sed -e"s/.*=//g` +- NAME=`grep "Name=" $i | sed -e"s/.*=//g` ++ EXEC="`egrep "Exec.*=" $i | sed -e "s/.*=//g"| sed "s/^\ //"`" ++ NAME="`egrep "Name.*=" $i | head -1 | sed -e "s/.*=//g"| sed "s/^\ //"`" + + # Where is the file actually located? + # This doesnt handle spaces. + FOUND="false" +- for j in `echo $PATH | sed -e"s/:/ /g"`; do +- if [ -x $j/$EXEC ]; then ++ #echo -e "* * [$i] [$NAME] [$EXEC]\n\n" ++ for j in `echo $PATH | sed -e "s/:/ /g"`; do ++ # echo "* * * teste [$j]/$EXEC" ++ if [ -x "$j/$EXEC" ]; then + EXEC="$j/$EXEC" + FOUND="true" ++ # echo "* * * * found $NAME" + break + fi + done + + # Did we find the object? + if [ "$FOUND" = "false" ]; then +- echo "Could not find $EXEC in path" ++ echo -e "* * * * [$EXEC] not found in path" + continue + fi + +- echo $NAME >> $OPIE_TMP/mc.names +- echo $NAME=$EXEC >> $OPIE_TMP/mc.map ++ echo "$NAME" >> $OPIE_TMP/mc.names ++ echo "$NAME=$EXEC" >> $OPIE_TMP/mc.map + + done +- +- SELECTION=`cat $OPIE_TMP/mc.names | $OPIE_SH -g -i -M "Select which application" -l -F` ++ ++ echo -e "\n--------------------------------------\n\n" ++ ++ SELECTION=`cat $OPIE_TMP/mc.names | $OPIE_SH -g -i -M "Select which application" -l -F` + LOCATION=`grep "$SELECTION" $OPIE_TMP/mc.map | sed -e"s/.*=//g"` + + rm $OPIE_TMP/mc.names + rm $OPIE_TMP/mc.map + ++ # User aborted ++ if test -z "$SELECTION" ++ then ++ echo "User aborted" ++ cleanup ++ exit 1 ++ fi ++ ++ + return + } + +@@ -112,7 +134,7 @@ + } + + is_compat() { +- if [ "`ls -l \"$1\" | sed -e\"s/.*-> //g\"`" = "$OPIE_COMPAT" ]; then ++ if [ "`ls -l \"$1\" | sed -e \"s/.*-> //g\"`" = "$OPIE_COMPAT" ]; then + echo "Is already linked to compat lib" + return 1 + else |