3 # Go to folder where this file lies.
9 --deb|
-deb|deb|.deb|debaa|debbaa|debioi
)
20 echo " Usage: mythtv-deb-creator.sh COMMAND"
23 echo " --deb | -deb | deb"
24 echo " This creates mythtv .deb into ../debs/"
25 echo " Packaging requires that you have packaged and"
26 echo " installet Irreco dev package into Scratchbox."
33 # Check we are in scratchbox
34 if [[ "$_SBOX_DIR" == "" ||
35 "$_SBOX_RESTART_FILE" == "" ||
36 "$_SBOX_SHELL_PID" == "" ||
37 "$_SBOX_USER_GROUPNAME" == "" ]]; then
38 echo "Error: Need scratchbox."
42 # Go to irtrans backend directory and build package
43 cd ..
/backend
/mythtv
/trunk
/
44 echo " Run dpkg-buildpackage"
45 dpkg-buildpackage
-rfakeroot -i
47 # Check there is place to ditch deb
48 if [ ! -e "../../../debs/" ]; then
49 mkdir
-v ..
/..
/..
/debs
/
52 # Ditch .deb to correct directory
53 #mv -fv ../irreco-backend-mythtv* ../../../debs/