diff options
author | Ross Burton <ross@openedhand.com> | 2007-06-29 10:23:37 +0000 |
---|---|---|
committer | Ross Burton <ross@openedhand.com> | 2007-06-29 10:23:37 +0000 |
commit | 13e87f0a9638168eb7cf5a705a472a1a99113aa2 (patch) | |
tree | bfea95c39158adee44e6570f7c83ece91aeafbc7 | |
parent | dedb4d34e207c7cb1cb4bf40c1f82fc49c9169d3 (diff) | |
download | poky-13e87f0a9638168eb7cf5a705a472a1a99113aa2.tar.gz |
Capitalise titles without using bash syntax
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2059 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r-- | meta/packages/puzzles/oh-puzzles_svn.bb | 6 | ||||
-rw-r--r-- | meta/packages/puzzles/puzzles_r7593.bb | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/meta/packages/puzzles/oh-puzzles_svn.bb b/meta/packages/puzzles/oh-puzzles_svn.bb index f6599484e6..d4d8b3b5a7 100644 --- a/meta/packages/puzzles/oh-puzzles_svn.bb +++ b/meta/packages/puzzles/oh-puzzles_svn.bb | |||
@@ -3,7 +3,7 @@ LICENSE = "MIT" | |||
3 | SECTION = "x11" | 3 | SECTION = "x11" |
4 | DEPENDS = "gtk+ gconf intltool-native librsvg" | 4 | DEPENDS = "gtk+ gconf intltool-native librsvg" |
5 | PV = "0.1+svn${SRCDATE}" | 5 | PV = "0.1+svn${SRCDATE}" |
6 | PR = "r3" | 6 | PR = "r4" |
7 | 7 | ||
8 | inherit autotools pkgconfig | 8 | inherit autotools pkgconfig |
9 | 9 | ||
@@ -19,9 +19,7 @@ do_install_append () { | |||
19 | for prog in *; do | 19 | for prog in *; do |
20 | if [ -x $prog ]; then | 20 | if [ -x $prog ]; then |
21 | # Convert prog to Title Case | 21 | # Convert prog to Title Case |
22 | firstchar=${prog:0:1} | 22 | title=$(echo $prog | sed 's/\(^\| \)./\U&/g') |
23 | title=`echo "$firstchar" | tr a-z A-Z` | ||
24 | title="$title${prog:1}" | ||
25 | echo "making ${D}/${datadir}/applications/$prog.desktop" | 23 | echo "making ${D}/${datadir}/applications/$prog.desktop" |
26 | cat <<STOP > ${D}/${datadir}/applications/$prog.desktop | 24 | cat <<STOP > ${D}/${datadir}/applications/$prog.desktop |
27 | [Desktop Entry] | 25 | [Desktop Entry] |
diff --git a/meta/packages/puzzles/puzzles_r7593.bb b/meta/packages/puzzles/puzzles_r7593.bb index bcb19bae2c..e580116198 100644 --- a/meta/packages/puzzles/puzzles_r7593.bb +++ b/meta/packages/puzzles/puzzles_r7593.bb | |||
@@ -1,6 +1,6 @@ | |||
1 | 1 | ||
2 | DEPENDS = "gtk+" | 2 | DEPENDS = "gtk+" |
3 | PR = "r4" | 3 | PR = "r5" |
4 | MOD_PV = "${@bb.data.getVar('PV',d,1)[1:]}" | 4 | MOD_PV = "${@bb.data.getVar('PV',d,1)[1:]}" |
5 | 5 | ||
6 | #SRC_URI = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${PV}.tar.gz" | 6 | #SRC_URI = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${PV}.tar.gz" |
@@ -35,9 +35,7 @@ do_install () { | |||
35 | for prog in *; do | 35 | for prog in *; do |
36 | if [ -x $prog ]; then | 36 | if [ -x $prog ]; then |
37 | # Convert prog to Title Case | 37 | # Convert prog to Title Case |
38 | firstchar=${prog:0:1} | 38 | title=$(echo $prog | sed 's/\(^\| \)./\U&/g') |
39 | title=`echo "$firstchar" | tr a-z A-Z` | ||
40 | title="$title${prog:1}" | ||
41 | echo "making ${D}/${datadir}/applications/$prog.desktop" | 39 | echo "making ${D}/${datadir}/applications/$prog.desktop" |
42 | cat <<STOP > ${D}/${datadir}/applications/$prog.desktop | 40 | cat <<STOP > ${D}/${datadir}/applications/$prog.desktop |
43 | [Desktop Entry] | 41 | [Desktop Entry] |