3 # Go to folder where this file lies.
9 echo "This script is deprecated, do not use."
10 echo "Instead run \"/themes/make source\", sign and send to maemo.org"
14 --deb|
-deb|deb|.deb|debaa|debbaa|debioi
)
25 echo " Usage: theme-deb-creator.sh COMMAND"
28 echo " --deb | -deb | deb"
29 echo " This creates theme .deb's"
30 echo " of evil, scifi, sunflower, default, modern and white."
37 # Check we are in scratchbox
38 if [[ "$_SBOX_DIR" == "" ||
39 "$_SBOX_RESTART_FILE" == "" ||
40 "$_SBOX_SHELL_PID" == "" ||
41 "$_SBOX_USER_GROUPNAME" == "" ]]; then
42 echo "Error: Need scratchbox."
47 # Go to theme directory and build package
49 echo " Run dpkg-buildpackage for default theme"
50 dpkg-buildpackage
-rfakeroot -i
52 if [[ "$?" == "1" ]]; then
54 echo " Failed to build default theme package"
61 # Go to theme directory and build package
63 echo " Run dpkg-buildpackage for evil theme"
64 dpkg-buildpackage
-rfakeroot -i
66 if [[ "$?" == "1" ]]; then
68 echo " Failed to build evil theme package"
74 # Go to theme directory and build package
76 echo " Run dpkg-buildpackage for scifi theme"
77 dpkg-buildpackage
-rfakeroot -i
79 if [[ "$?" == "1" ]]; then
81 echo " Failed to build scifi theme package"
87 # Go to theme directory and build package
89 echo " Run dpkg-buildpackage for sunflower theme"
90 dpkg-buildpackage
-rfakeroot -i
92 if [[ "$?" == "1" ]]; then
94 echo " Failed to build sunflower theme package"
100 # Go to theme directory and build package
102 echo " Run dpkg-buildpackage for modern theme"
103 dpkg-buildpackage
-rfakeroot -i
105 if [[ "$?" == "1" ]]; then
107 echo " Failed to build modern theme package"
113 # Go to theme directory and build package
115 echo " Run dpkg-buildpackage for white theme"
116 dpkg-buildpackage
-rfakeroot -i
118 if [[ "$?" == "1" ]]; then
120 echo " Failed to build white theme package"
127 # Check there is place to ditch deb's
128 #echo " Check debs directory exists"
129 #if [ ! -e "../../debs/" ]; then
130 # mkdir -v ../../debs/
133 # Ditch .deb to correct directory
134 # echo " Move deb's and changes's"
135 #mv -fv ../irreco-theme-*.deb ../../debs/
136 #mv -fv ../irreco-theme-*.changes ../../debs/