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 into ../debs/"
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 -B
46 if [[ "$?" == "1" ]]; then
48 echo " Failed to build default theme package"
55 # Go to theme directory and build package
57 echo " Run dpkg-buildpackage for evil theme"
58 dpkg-buildpackage
-rfakeroot -B
59 if [[ "$?" == "1" ]]; then
61 echo " Failed to build evil theme package"
67 # Go to theme directory and build package
69 echo " Run dpkg-buildpackage for scifi theme"
70 dpkg-buildpackage
-rfakeroot -B
71 if [[ "$?" == "1" ]]; then
73 echo " Failed to build scifi theme package"
79 # Go to theme directory and build package
81 echo " Run dpkg-buildpackage for sunflower theme"
82 dpkg-buildpackage
-rfakeroot -B
83 if [[ "$?" == "1" ]]; then
85 echo " Failed to build sunflower theme package"
91 # Go to theme directory and build package
93 echo " Run dpkg-buildpackage for modern theme"
94 dpkg-buildpackage
-rfakeroot -B
95 if [[ "$?" == "1" ]]; then
97 echo " Failed to build modern theme package"
103 # Go to theme directory and build package
105 echo " Run dpkg-buildpackage for white theme"
106 dpkg-buildpackage
-rfakeroot -B
107 if [[ "$?" == "1" ]]; then
109 echo " Failed to build white theme package"
116 # Check there is place to ditch deb's
117 echo " Check debs directory exists"
118 if [ ! -e "../../debs/" ]; then
122 # Ditch .deb to correct directory
123 echo " Move deb's and changes's"
124 mv -fv ..
/irreco-theme-
*.deb ..
/..
/debs
/
125 mv -fv ..
/irreco-theme-
*.changes ..
/..
/debs
/