This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
THEME_PACKAGE="hildon-theme-example" |
| 4 |
THEME_NAME="My example theme" |
| 5 |
THEME_MAINTAINER="John Doe <john@doe.com>" |
| 6 |
THEME_DIRECTORY="Example" |
| 7 |
|
| 8 |
echo "What should the package name be of your theme be? (Example: hildon-theme-example)" |
| 9 |
read THEME_PACKAGE |
| 10 |
|
| 11 |
echo "What should the theme name be? (Example: My example theme)" |
| 12 |
read THEME_NAME |
| 13 |
|
| 14 |
echo "Who is the maintainer of this theme? Please use NAME <email@dot.com> form. (Example: John Doe <john@doe.com>)" |
| 15 |
read THEME_MAINTAINER |
| 16 |
|
| 17 |
echo "What should the directory name be?" |
| 18 |
echo "IMPORTANT: If your theme name has first letter upper case, this directory name must have first letter lower case!" |
| 19 |
echo "IMPORTANT: If your theme name has first letter lower case, this directory name must have first letter upper case!" |
| 20 |
echo "Otherwise you will be seeing highlighting bugs in your theme." |
| 21 |
read THEME_DIRECTORY |
| 22 |
|
| 23 |
echo "Setting up theme directory.." |
| 24 |
|
| 25 |
sed "s/@THEMEDIR@/$THEME_DIRECTORY/g" configure.ac.template | sed "s/@THEMENAME@/$THEME_NAME/g" > configure.ac |
| 26 |
|
| 27 |
sed "s/@THEME_PKG@/$THEME_PACKAGE/g" debian/control.template | sed "s/@THEME_MAINTAINER@/$THEME_MAINTAINER/g" | sed "s/@THEME_NAME@/$THEME_NAME/g" > debian/control |
| 28 |
|
| 29 |
sed "s/@ThemeDir@/$THEME_DIRECTORY/g" debian/postinst.template > debian/postinst |
| 30 |
chmod +x debian/postinst |
| 31 |
|
| 32 |
sed "s/@THEME_PKG@/$THEME_PACKAGE/g" debian/rules.template > debian/rules |
| 33 |
chmod +x debian/rules |
| 34 |
|
| 35 |
sed "s/@ThemeDir@/$THEME_DIRECTORY/g" debian/prerm.template > debian/prerm |
| 36 |
chmod +x debian/prerm |
| 37 |
|
| 38 |
RFCTIME=`date -R` |
| 39 |
sed "s/@THEME_PKG@/$THEME_PACKAGE/g" debian/changelog.template | sed "s/@THEME_MAINTAINER@/$THEME_MAINTAINER/g" | sed "s/@DATETIME@/$RFCTIME/g" > debian/changelog |
| 40 |
|
| 41 |
echo "Done. When done replacing items, run 'mad dpkg-buildpackage -S -us -uc -d' if under MADDE!" |