3 # Go to folder where this file lies.
9 --deb|
-deb|deb|.deb|debaa|debbaa|debioi
)
20 echo " Usage: theme-deb-creator.sh COMMAND"
23 echo " --deb | -deb | deb"
24 echo " This creates theme .deb's"
25 echo " of evil, scifi, sunflower, default, modern and white."
32 # Check we are in scratchbox
33 if [[ "$_SBOX_DIR" == "" ||
34 "$_SBOX_RESTART_FILE" == "" ||
35 "$_SBOX_SHELL_PID" == "" ||
36 "$_SBOX_USER_GROUPNAME" == "" ]]; then
37 echo "Error: Need scratchbox."
42 # Go to theme directory and build package
44 echo " Run dpkg-buildpackage for default theme"
45 dpkg-buildpackage
-rfakeroot -i
47 if [[ "$?" == "1" ]]; then
49 echo " Failed to build default theme package"
56 # Go to theme directory and build package
58 echo " Run dpkg-buildpackage for evil theme"
59 dpkg-buildpackage
-rfakeroot -i
61 if [[ "$?" == "1" ]]; then
63 echo " Failed to build evil theme package"
69 # Go to theme directory and build package
71 echo " Run dpkg-buildpackage for scifi theme"
72 dpkg-buildpackage
-rfakeroot -i
74 if [[ "$?" == "1" ]]; then
76 echo " Failed to build scifi theme package"
82 # Go to theme directory and build package
84 echo " Run dpkg-buildpackage for sunflower theme"
85 dpkg-buildpackage
-rfakeroot -i
87 if [[ "$?" == "1" ]]; then
89 echo " Failed to build sunflower theme package"
95 # Go to theme directory and build package
97 echo " Run dpkg-buildpackage for modern theme"
98 dpkg-buildpackage
-rfakeroot -i
100 if [[ "$?" == "1" ]]; then
102 echo " Failed to build modern theme package"
108 # Go to theme directory and build package
110 echo " Run dpkg-buildpackage for white theme"
111 dpkg-buildpackage
-rfakeroot -i
113 if [[ "$?" == "1" ]]; then
115 echo " Failed to build white theme package"
122 # Check there is place to ditch deb's
123 #echo " Check debs directory exists"
124 #if [ ! -e "../../debs/" ]; then
125 # mkdir -v ../../debs/
128 # Ditch .deb to correct directory
129 # echo " Move deb's and changes's"
130 #mv -fv ../irreco-theme-*.deb ../../debs/
131 #mv -fv ../irreco-theme-*.changes ../../debs/