3 # TODO version number checking
4 # TODO opt to make debug package of irreco
5 # TODO opt to make just cleaning
7 # Go to folder where this file lies.
13 echo "This script is deprecated."
14 echo "You should send sources to compiling queue at maemo.org"
19 if [[ "$COMMAND" == "" ]]; then
25 --release|release|rel
) enable_rel
"${ARGS[@]:2}";;
26 --developer|developer|dev
) enable_dev
"${ARGS[@]:2}";;
27 *) echo "Error: Unknown command \"$COMMAND\"";
37 echo "Usage: deb-creator COMMAND"
40 echo " --release | release | rel"
41 echo " Create Irreco-core release package"
42 echo " --developer | developer | dev"
43 echo " Create a package for backend developers. This will"
44 echo " include Irreco, irreco-util pkg-config files,"
45 echo " irreco-api and irreco-util headers."
46 echo " Only create this package if you need to package backend"
47 echo " and only install this package to Scratchbox."
49 echo " Deb package will be created to ../debs/"
55 echo "Creating developer package"
57 export IRRECO_DEVELOPER
=yes
58 cp -fv ..
/irreco
/debian
/control-dev ..
/irreco
/debian
/control
65 echo "Creating release package"
67 cp -fv ..
/irreco
/debian
/control-rel ..
/irreco
/debian
/control
73 # Check we are in scratchbox
74 if [[ "$_SBOX_DIR" == "" ||
75 "$_SBOX_RESTART_FILE" == "" ||
76 "$_SBOX_SHELL_PID" == "" ||
77 "$_SBOX_USER_GROUPNAME" == "" ]]; then
78 echo "Error: Need scratchbox."
86 if [ -e "Makefile" ]; then
91 if [ -e "autoclean.sh" ]; then
95 rm -rfv .
/debian
/irreco
97 # Create .deb (binary only)
98 dpkg-buildpackage
-rfakeroot -B
100 # Ditch .deb to correct directory
102 mv -fv ..
/irreco-core
* ..
/debs
/
109 deb_creator_main
"$@"