3 # Go to folder where this file lies.
9 --deb|
-deb|deb|.deb|debaa|debbaa|debioi
)
20 echo " Usage: irtrans-deb-creator COMMAND"
23 echo " --deb | -deb | deb"
24 echo " This creates irtrans .deb into ../debs/"
25 echo " Packaging requires that you have installet Irreco dev"
26 echo " 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 # Unpack irtrans lib and make libIRTrans.so
46 echo "Untar and make libirtrans"
55 # Go to irtrans backend directory, clean stuff and build package
56 cd ..
/..
/backend
/irtrans
/trunk
/
58 dpkg-buildpackage
-rfakeroot -i
60 # Ditch .deb to correct directory
61 mkdir
-v ..
/..
/..
/debs
/
62 #mv -fv ../irreco-backend-irtrans* ../../../debs/
63 #mv -fv ../irtrans*.changes ../../../debs/