11 if [[ "$COMMAND" == "" ]]; then
12 echo "Error: You did not give me a command to run!"
22 --makeinst|makeinst
) irtrans_makeinst
"${ARGS[@]:1}";;
23 # --make|make) irtrans_make "${ARGS[@]:1}";;
24 # --install|install|inst) irtrans_install "${ARGS[@]:1}";;
25 --clean|clean
) irtrans_clean
"${ARGS[@]:1}";;
26 # --test|test) irtrans_test "${ARGS[@]:1}";;
27 *) echo "Error: Unknown command \"$COMMAND\"";
35 echo "Usage: $SCRIPT_NAME COMMAND"
38 echo " --makeinst | makeinst"
39 echo " Setup whole irtrans thingy"
40 echo " Creates irserver, shlib and shlib-dev deb's"
41 echo " Installs deb's"
42 echo " You still need to run \"backend.sh irtrans inst\" to install irtrans backend"
44 # echo " --install | install | inst"
45 # echo " Run make for irtrans if needed"
46 # echo " copy libIRTrans.so to $INSTALL_DIR/lib"
47 # echo " copy irserver to $INSTALL_DIR/bin"
48 # echo " Run autogen.sh for irreco-backend-irtrans if needed"
49 # echo " Run configure.sh for irreco-backend-irtrans if needed"
50 # echo " Run make for irreco-backend-irtrans"
51 # echo " Run make install for irreco-backend-irtrans"
54 echo " Run \"make clean\" for irserver and shlib"
55 echo " And removes .debs and .changes from irtrans dir"
61 # match_sb_target "$SCRIPT_TMP_DIR/irtrans_sb_target"
62 # if [[ "$?" != "0" ]]; then
63 # irtrans_print_title "MAKE"
66 # check_exit_code "$?"
69 # check_exit_code "$?"
73 # check_exit_code "$?"
76 # check_exit_code "$?"
79 # check_exit_code "$?"
85 irtrans_print_title
"irserver debbing"
86 cd "$IRTRANS_SHLIB_DIR"
88 dpkg-buildpackage
-rfakeroot -b
91 irtrans_print_title
"shlib debbing"
92 cd "$IRTRANS_IRSERVER_DIR"
94 dpkg-buildpackage
-rfakeroot -b
97 irtrans_print_title
"dpkg'ing debs"
99 dpkg
-i irtrans-irserver_
*.deb
101 dpkg
-i irtrans-shlib_
*.deb
103 dpkg
-i irtrans-shlib-dev_
*.deb
107 echo "Irserver and libIRTrans (aka. shlib) on place"
108 echo "Now just remember to install backend"
114 #irtrans_backend_conf()
118 # if [ -e './autogen.sh' ]; then
119 # irtrans_print_title "BACKEND AUTOGEN"
121 # check_exit_code "$?"
124 # irtrans_print_title "BACKEND CONFIGURE"
126 # PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$INSTALL_DIR/lib/pkgconfig ./configure \
127 # --with-irtrans=$IRTRANS_DIR/irtransdll --prefix=$INSTALL_DIR --enable-debug=yes "$@"
128 # check_exit_code "$?"
133 # if [ ! -e "$IRTRANS_SHLIB_DIR/libIRTrans.so" ] || \
134 # [ ! -e "$IRTRANS_IRSERVER_DIR/irserver" ]; then
137 # cp -v "$IRTRANS_SHLIB_DIR/libIRTrans.so" "$INSTALL_DIR/lib"
138 # cp -v "$IRTRANS_IRSERVER_DIR/irserver" "$INSTALL_DIR/bin"
140 # cd "$BACKEND_DIR/irtrans"
141 # check_exit_code "$?"
143 # if [ ! -e "Makefile" ]; then
144 # irtrans_backend_conf
147 # irtrans_print_title "BACKEND MAKE"
149 # irtrans_print_title "BACKEND MAKE INSTALL"
156 irtrans_print_title
"MAKE CLEAN"
157 cd "$IRTRANS_SHLIB_DIR/src"
159 cd "$IRTRANS_IRSERVER_DIR/src"
162 irtrans_print_title
"rm debs"
164 rm -rf irtrans-irserver_
*.
*
165 rm -rf irtrans-shlib
*.
*
168 echo "Irserver and shlib removed"
169 echo "You may uninstall irtrans things with this:"
170 echo "dpkg --remove irtrans-shlib-dev irtrans-shlib irtrans-irserver"
172 # rm "$SCRIPT_TMP_DIR/irtrans_sb_target"
176 # irtrans_print_title "BACKEND CLEAN"
177 # cd "$BACKEND_DIR/irtrans"
183 irtrans_print_title
()
185 print_title
"IRTRANS $1"