[maemo-commits] [maemo-commits] r16624 - in projects/haf/trunk/hildon-theme-tools: . scripts

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Nov 11 10:22:43 EET 2008
Author: danielb
Date: 2008-11-11 10:22:37 +0200 (Tue, 11 Nov 2008)
New Revision: 16624

Modified:
   projects/haf/trunk/hildon-theme-tools/ChangeLog
   projects/haf/trunk/hildon-theme-tools/scripts/hildon-theme-bootstrap
Log:
update for devel theme

Modified: projects/haf/trunk/hildon-theme-tools/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-theme-tools/ChangeLog	2008-11-10 14:58:56 UTC (rev 16623)
+++ projects/haf/trunk/hildon-theme-tools/ChangeLog	2008-11-11 08:22:37 UTC (rev 16624)
@@ -1,3 +1,7 @@
+2008-11-11  Daniel Borgmann  <danielb at openismus.com>
+
+	* scripts/hildon-theme-bootstrap: Update for devel theme
+
 2008-10-20  Tuomas Kuosmanen  <tuomas.kuosmanen at nokia.com>
 
 	* src/outliner.c (process): pretty colors, tweaked alpha slightly

Modified: projects/haf/trunk/hildon-theme-tools/scripts/hildon-theme-bootstrap
===================================================================
--- projects/haf/trunk/hildon-theme-tools/scripts/hildon-theme-bootstrap	2008-11-10 14:58:56 UTC (rev 16623)
+++ projects/haf/trunk/hildon-theme-tools/scripts/hildon-theme-bootstrap	2008-11-11 08:22:37 UTC (rev 16624)
@@ -4,6 +4,7 @@
 #                                                                            
 # Authors:                                                                   
 #      Michael Dominic K. <michael.kostrzewa at nokia.com>
+#      Daniel Borgmann    <danielb at openismus.com>
 #                                                                            
 # This program is free software; you can redistribute it and/or modify it    
 # under the terms of the GNU General Public License as published by the      
@@ -19,8 +20,10 @@
 # Temple Place - Suite 330, Boston, MA 02111-1307, USA.                      
 
 # Vars
-LAYOUTS="hildon-theme-layout-3 hildon-theme-layout-4"
+LAYOUTS="hildon-theme-layout-4:Chinook hildon-theme-layout-5:Fremantle"
 LAYOUT=
+OLD_THEME_NAME=
+OLD_THEME_DIR=
 THEME_NAME=
 THEME_DIR=
 AUTHOR_NAME=
@@ -41,14 +44,18 @@
 {
         echo "Which layout do you want to use?"
         select opt in $LAYOUTS; do
-                if [ "$opt" == "hildon-theme-layout-3" ]; then 
-                        LAYOUT="hildon-theme-layout-3"
-                        SVN_ADDRESS="https://stage.maemo.org/svn/maemo/projects/haf/tags/hildon-theme-plankton/3.1.1-1/"
-                        return
-                elif [ "$opt" == "hildon-theme-layout-4" ]; then
+                if [ "$opt" == "hildon-theme-layout-4:Chinook" ]; then 
                         LAYOUT="hildon-theme-layout-4"
+                        OLD_THEME_NAME="Plankton"
+                        OLD_THEME_DIR="plankton"
                         SVN_ADDRESS="https://stage.maemo.org/svn/maemo/projects/haf/tags/hildon-theme-plankton/4.11.0-2/"
                         return
+                elif [ "$opt" == "hildon-theme-layout-5:Fremantle" ]; then
+                        LAYOUT="hildon-theme-layout-5"
+                        OLD_THEME_NAME="Devel"
+                        OLD_THEME_DIR="devel"
+                        SVN_ADDRESS="https://projects.maemo.org/svn/af/projects/hildon-themes/hildon-theme-devel/"
+                        return
                 else
                         echo "Bad selection!"
                 fi
@@ -135,8 +142,8 @@
 {
         echo "Tweaking configure.ac"
         
-        sed -i -e "s:plankton:$THEME_DIR:" configure.ac
-        sed -i -e "s:Plankton:$THEME_NAME:" configure.ac
+        sed -i -e "s:$OLD_THEME_DIR:$THEME_DIR:" configure.ac
+        sed -i -e "s:$OLD_THEME_NAME:$THEME_NAME:" configure.ac
 }
 
 function remove_and_touch
@@ -155,7 +162,7 @@
 function fix_control_file
 {
         echo "Fixing the debian control file..."
-        sed -i -e "s:plankton:$THEME_DIR:" control
+        sed -i -e "s:$OLD_THEME_DIR:$THEME_DIR:" control
         sed -i -e "s:Michael Dominic Kostrzewa:$AUTHOR_NAME:" control
         sed -i -e "s:michael.kostrzewa at nokia.com:$AUTHOR_EMAIL:" control
         sed -i -e '/^Conflicts:.*/d' control
@@ -165,13 +172,19 @@
 function fix_postinst
 {
         echo "Fixing the postinst script..."
-        sed -i -e "s:plankton:$THEME_DIR:" postinst
+        sed -i -e "s:$OLD_THEME_DIR:$THEME_DIR:" postinst
 }
 
+function fix_prerm
+{
+        echo "Fixing the prerm script..."
+        sed -i -e "s:$OLD_THEME_DIR:$THEME_DIR:" prerm
+}
+
 function fix_rules
 {
         echo "Fixing the debian rules..."
-        sed -i -e "s:plankton:$THEME_DIR:" rules
+        sed -i -e "s:$OLD_THEME_DIR:$THEME_DIR:" rules
 }
 
 function fix_copyright 
@@ -193,7 +206,7 @@
         echo " -- $AUTHOR_NAME <$AUTHOR_EMAIL>  $DATE"  >> changelog
         echo                                            >> changelog
 
-        sed -i -e "s:plankton:$THEME_DIR:" changelog
+        sed -i -e "s:$OLD_THEME_DIR:$THEME_DIR:" changelog
 }
 
 # First show the banner
@@ -236,12 +249,13 @@
 cd debian
 fix_control_file
 fix_postinst
+fix_prerm
 fix_rules
 fix_copyright
 fix_changelog
 
 echo
-echo "The the layout was created in $PACKAGE_NAME - go ahead"
+echo "The layout was created in $PACKAGE_NAME - go ahead"
 echo "and modify the graphics to your liking."
 echo 
 echo "Please note that the theme package has all the licensing data"


More information about the maemo-commits mailing list