3 # Go to folder where this file lies.
9 --deb|
-deb|deb|.deb|debaa|debbaa|debioi
)
20 echo " Usage: lirc-deb-creator.sh COMMAND"
23 echo " --deb | -deb | deb"
24 echo " This creates lirc .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, clean stuff and build package
43 cd ..
/backend
/lirc
/trunk
/
46 echo " Run dpkg-buildpackage"
47 dpkg-buildpackage
-rfakeroot -i
49 # Check there is place to ditch deb
50 if [ ! -e "../../../debs/" ]; then
51 mkdir
-v ..
/..
/..
/debs
/
54 # Ditch .deb to correct directory
55 #mv -fv ../irreco-backend-lirc* ../../../debs/