[maemo-commits] [maemo-commits] r10146 - in projects/haf/trunk/hildon-theme-tools: . debian scripts
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Thu Feb 22 10:57:14 EET 2007
- Previous message: [maemo-commits] r10144 - projects/haf/trunk/dpkg
- Next message: [maemo-commits] r10147 - in projects/haf/tags/hildon-theme-tools: . 0.3.0-1 0.3.0-1/debian 0.3.0-1/scripts
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: mdk Date: 2007-02-22 10:57:13 +0200 (Thu, 22 Feb 2007) New Revision: 10146 Added: projects/haf/trunk/hildon-theme-tools/TODO projects/haf/trunk/hildon-theme-tools/scripts/hildon-theme-bootstrap Modified: projects/haf/trunk/hildon-theme-tools/ChangeLog projects/haf/trunk/hildon-theme-tools/NEWS projects/haf/trunk/hildon-theme-tools/README projects/haf/trunk/hildon-theme-tools/configure.ac projects/haf/trunk/hildon-theme-tools/debian/changelog projects/haf/trunk/hildon-theme-tools/debian/copyright projects/haf/trunk/hildon-theme-tools/scripts/Makefile.am Log: [0.3.0-1 release] Adding new tool for bootstrapping the theme packages. Updating README and other package docs. Modified: projects/haf/trunk/hildon-theme-tools/ChangeLog =================================================================== --- projects/haf/trunk/hildon-theme-tools/ChangeLog 2007-02-22 07:40:55 UTC (rev 10145) +++ projects/haf/trunk/hildon-theme-tools/ChangeLog 2007-02-22 08:57:13 UTC (rev 10146) @@ -1,10 +1,26 @@ -2006-12-08 Michael Dominic K. <mdk at mdk.am> +2007-02-22 Michael Dominic Kostrzewa <michael.kostrzewa at nokia.com> + [0.3.0-1 release] + * NEWS: - * debian/control: Adding perl to dependencies + * README: + * configure.ac: + * debian/changelog: + * debian/copyright: Updating. + * scripts/Makefile.am: + * scripts/hildon-theme-bootstrap: Adding new tool for bootstrapping + the theme packages. + + * TODO: Adding a TODO file. + 2006-12-08 Michael Dominic Kostrzewa <michael.kostrzewa at nokia.com> + * NEWS: + * debian/control: Adding perl to dependencies. + +2006-12-08 Michael Dominic Kostrzewa <michael.kostrzewa at nokia.com> + [0.2.1-1 release] * NEWS: Modified: projects/haf/trunk/hildon-theme-tools/NEWS =================================================================== --- projects/haf/trunk/hildon-theme-tools/NEWS 2007-02-22 07:40:55 UTC (rev 10145) +++ projects/haf/trunk/hildon-theme-tools/NEWS 2007-02-22 08:57:13 UTC (rev 10146) @@ -1,5 +1,6 @@ -[UNRELEASED] +[0.3.0 release] * Fixing a tiny dep problem in debian package +* New tool: hildon-theme-bootstrap [0.2.1 release] * Outliner tool now outlines colors as well. Modified: projects/haf/trunk/hildon-theme-tools/README =================================================================== --- projects/haf/trunk/hildon-theme-tools/README 2007-02-22 07:40:55 UTC (rev 10145) +++ projects/haf/trunk/hildon-theme-tools/README 2007-02-22 08:57:13 UTC (rev 10146) @@ -3,7 +3,26 @@ These tools allow you to create themes for the maemo platform. They are intended to support the various theme layout packages (such as -hildon-theme-layout-2 for mistral or hildon-theme-layout-3 for sardine). +hildon-theme-layout-2 for mistral or hildon-theme-layout-3 for bora, etc.). -See these layout packages for more information on how to create a -actual theme package. +Tools lists +----------- + + * hildon-theme-bootstrap + * hildon-theme-mk-bundle + * hildon-theme-rc-parser + * hildon-theme-subst + * hildon-theme-slicer + * hildon-theme-colourizer + * hildon-theme-regenerator + * hildon-theme-outliner + +Creating themes +--------------- + +Check the documentation on our wiki pages for howtos and instructions about +creating themes. For a start you might want to try out hildon-theme-bootstrap +which is a quick tool for bootstrapping a new theme. This tool will create a +complete theme package directory that can be built directly using the debian +tools. + Added: projects/haf/trunk/hildon-theme-tools/TODO =================================================================== --- projects/haf/trunk/hildon-theme-tools/TODO 2007-02-22 07:40:55 UTC (rev 10145) +++ projects/haf/trunk/hildon-theme-tools/TODO 2007-02-22 08:57:13 UTC (rev 10146) @@ -0,0 +1,5 @@ +TODO +---- + +* Add info about dpkg-buildpackage to hildon-theme-bootstrap + Modified: projects/haf/trunk/hildon-theme-tools/configure.ac =================================================================== --- projects/haf/trunk/hildon-theme-tools/configure.ac 2007-02-22 07:40:55 UTC (rev 10145) +++ projects/haf/trunk/hildon-theme-tools/configure.ac 2007-02-22 08:57:13 UTC (rev 10146) @@ -1,5 +1,5 @@ AC_INIT(Makefile.am) -AM_INIT_AUTOMAKE(hildon-theme-tools, 0.2.1) +AM_INIT_AUTOMAKE(hildon-theme-tools, 0.3.0) AM_CONFIG_HEADER(config.h) AC_CANONICAL_HOST Modified: projects/haf/trunk/hildon-theme-tools/debian/changelog =================================================================== --- projects/haf/trunk/hildon-theme-tools/debian/changelog 2007-02-22 07:40:55 UTC (rev 10145) +++ projects/haf/trunk/hildon-theme-tools/debian/changelog 2007-02-22 08:57:13 UTC (rev 10146) @@ -1,3 +1,10 @@ +hildon-theme-tools (0.3.0-1) unstable; urgency=low + + * Fixing a tiny dep problem in debian package + * New tool: hildon-theme-bootstrap + + -- Michael Dominic Kostrzewa <michael.kostrzewa at nokia.com> Thu, 22 Feb 2007 10:50:59 +0200 + hildon-theme-tools (0.2.1-1) unstable; urgency=low * Outliner tool now outlines colors as well. Modified: projects/haf/trunk/hildon-theme-tools/debian/copyright =================================================================== --- projects/haf/trunk/hildon-theme-tools/debian/copyright 2007-02-22 07:40:55 UTC (rev 10145) +++ projects/haf/trunk/hildon-theme-tools/debian/copyright 2007-02-22 08:57:13 UTC (rev 10146) @@ -1,4 +1,4 @@ -Copyright (c) 2005, 2006 Nokia Corporation +Copyright (c) 2005, 2006, 2007 Nokia Corporation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as Modified: projects/haf/trunk/hildon-theme-tools/scripts/Makefile.am =================================================================== --- projects/haf/trunk/hildon-theme-tools/scripts/Makefile.am 2007-02-22 07:40:55 UTC (rev 10145) +++ projects/haf/trunk/hildon-theme-tools/scripts/Makefile.am 2007-02-22 08:57:13 UTC (rev 10146) @@ -1,5 +1,6 @@ dist_bin_SCRIPTS = hildon-theme-subst \ hildon-theme-mk-bundle \ - hildon-theme-rc-parser + hildon-theme-rc-parser \ + hildon-theme-bootstrap MAINTAINERCLEANFILES = Makefile.in Added: projects/haf/trunk/hildon-theme-tools/scripts/hildon-theme-bootstrap =================================================================== --- projects/haf/trunk/hildon-theme-tools/scripts/hildon-theme-bootstrap 2007-02-22 07:40:55 UTC (rev 10145) +++ projects/haf/trunk/hildon-theme-tools/scripts/hildon-theme-bootstrap 2007-02-22 08:57:13 UTC (rev 10146) @@ -0,0 +1,250 @@ +#! /usr/bin/env bash + +# GPL license, Copyright (c) 2007 by Nokia Corporation +# +# Authors: +# Michael Dominic K. <michael.kostrzewa at nokia.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 +# Free Software Foundation, version 2. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., 59 +# Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +# Vars +LAYOUTS="hildon-theme-layout-3 hildon-theme-layout-4" +LAYOUT= +THEME_NAME= +THEME_DIR= +AUTHOR_NAME= +AUTHOR_EMAIL= +PACKAGE_NAME= +SVN_ADDRESS= + +function show_banner +{ + echo "Theme bootstrap tool by Michael Dominic K."; + echo "Copyright 2007 by Nokia Corporation."; + echo + echo "This tool will bootstrap a new theme directory structure."; + echo +} + +function show_layout_options +{ + 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 + LAYOUT="hildon-theme-layout-4" + SVN_ADDRESS="https://stage.maemo.org/svn/maemo/projects/haf/tags/hildon-theme-plankton/4.2.0-1/" + return + else + echo "Bad selection!" + fi + done +} + +function ask_for_theme_name +{ + echo "What's the theme name? [ie. My Theme]" + + while [ "$THEME_NAME" = "" ]; do + echo -n "#? " + read THEME_NAME + done +} + +function ask_for_theme_dir +{ + echo "What's the theme directory? [ie. mytheme]" + + while [ "$THEME_DIR" = "" ]; do + echo -n "#? " + read THEME_DIR + done + PACKAGE_NAME="hildon-theme-$THEME_DIR" +} + +function ask_for_author_name +{ + echo "What's the author name? [ie. John Doe]" + + while [ "$AUTHOR_NAME" = "" ]; do + echo -n "#? " + read AUTHOR_NAME + done +} + +function ask_for_author_dir +{ + echo "What's the author's e-mail? [ie. john_doe at gmail.com]" + + while [ "$AUTHOR_EMAIL" = "" ]; do + echo -n "#? " + read AUTHOR_EMAIL + done +} + +function show_summary +{ + echo "Summary:" + echo + echo "Theme name : $THEME_NAME" + echo "Layout : $LAYOUT" + echo "Package name : $PACKAGE_NAME" + echo "Theme directory : $THEME_DIR [/usr/share/themes/$THEME_DIR]" + echo "Author : $AUTHOR_NAME <$AUTHOR_EMAIL>" + echo + + echo "Is this correct? [y/n]" + OPTION= + while [[ "$OPTION" != "y" && "$OPTION" != "n" ]]; do + echo -n "#? " + read OPTION + done + + if [ "$OPTION" = "n" ]; then + exit + fi + +} + +function fetch +{ + echo "Fetching source from subversion repository..." + svn co $SVN_ADDRESS $PACKAGE_NAME + + if [ "$?" -ne "0" ]; then + echo "Failed to fetch source!" + exit 128 + fi +} + +function parse_configure +{ + echo "Tweaking configure.ac" + + sed -i -e "s:plankton:$THEME_DIR:" configure.ac + sed -i -e "s:Plankton:$THEME_NAME:" configure.ac +} + +function remove_and_touch +{ + echo "Replacing basic files..." + rm -f README + rm -f AUTHORS + rm -f ChangeLog + rm -f NEWS + touch README + touch AUTHORS + touch NEWS + touch ChangeLog +} + +function fix_control_file +{ + echo "Fixing the debian control file..." + sed -i -e "s:plankton:$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 + sed -i -e '/^Replaces:.*/d' control +} + +function fix_postinst +{ + echo "Fixing the postinst script..." + sed -i -e "s:plankton:$THEME_DIR:" postinst +} + +function fix_rules +{ + echo "Fixing the debian rules..." + sed -i -e "s:plankton:$THEME_DIR:" rules +} + +function fix_copyright +{ + echo "Fixing copyright headers..." + sed -i -e '/Nokia/d' copyright +} + +function fix_changelog +{ + # We want to maintain the version number here + echo "Fixing the debian changelog..." + LINE=`grep "unstable" -m 1 changelog` + DATE=`date -R` + echo "$LINE" > changelog + echo >> changelog + echo " * New theme" >> changelog + echo >> changelog + echo " -- $AUTHOR_NAME <$AUTHOR_EMAIL> $DATE" >> changelog + echo >> changelog + + sed -i -e "s:plankton:$THEME_DIR:" changelog +} + +# First show the banner +show_banner + +# Show the layout options +show_layout_options +echo + +# Ask for theme name +ask_for_theme_name +echo + +# Ask for theme directory +ask_for_theme_dir +echo + +# Ask for theme name +ask_for_author_name +echo + +# Ask for theme name +ask_for_author_dir +echo + +# Show summary +show_summary + +# Fetch if from svn +fetch + +# Change in to the proper directory +cd $PACKAGE_NAME + +# Parse configure.ac, replace basic files +parse_configure +remove_and_touch + +# Do the right thing in the debian directory +cd debian +fix_control_file +fix_postinst +fix_rules +fix_copyright +fix_changelog + +echo +echo "The 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" +echo "set to GPL. If you'd like to license your theme under different terms" +echo "make sure to change the copyright information manually." +echo Property changes on: projects/haf/trunk/hildon-theme-tools/scripts/hildon-theme-bootstrap ___________________________________________________________________ Name: svn:executable + *
- Previous message: [maemo-commits] r10144 - projects/haf/trunk/dpkg
- Next message: [maemo-commits] r10147 - in projects/haf/tags/hildon-theme-tools: . 0.3.0-1 0.3.0-1/debian 0.3.0-1/scripts
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]