[oe-commits] Martin Jansa : gpe-icons: add postinst merger
git version control
git at git.openembedded.org
Mon Nov 23 20:06:08 UTC 2009
Module: openembedded.git
Branch: shr/merge
Commit: 604d18a5e3475f44689073ab5ac5c463dc5e2501
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=604d18a5e3475f44689073ab5ac5c463dc5e2501
Author: Martin Jansa <Martin.Jansa at gmail.com>
Date: Sun Nov 22 23:18:12 2009 +0100
gpe-icons: add postinst merger
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
recipes/gpe-icons/gpe-icons.inc | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/recipes/gpe-icons/gpe-icons.inc b/recipes/gpe-icons/gpe-icons.inc
index 5e52894..613786e 100644
--- a/recipes/gpe-icons/gpe-icons.inc
+++ b/recipes/gpe-icons/gpe-icons.inc
@@ -17,4 +17,20 @@ pkg_postinst() {
echo "warn: Check what's left there and remove it manually."
mv -f ${ALTERNATIVE_LINK} ${ALTERNATIVE_LINK}.old
fi
+ pixmap_dirs_root="${datadir}/gpe/"
+ cd ${pixmap_dirs_root}
+ for pixmap_dir in pixmaps.*; do
+ if [ "${pixmap_dir}"x == "pixmaps.${PN}"x ] ; then
+ continue;
+ fi
+ for pixmap in `find ${pixmap_dir}`; do
+ pixmap_target=`echo ${pixmap} | sed "s/${pixmap_dir}/pixmaps.${PN}/g"`;
+ if [ -e ${pixmap_target} ] ; then
+ echo "${pixmap_target} exists";
+ else
+ echo "${pixmap} merged";
+ cp -ra ${pixmap} ${pixmap_target};
+ fi;
+ done
+ done
}
More information about the Openembedded-commits
mailing list