10 if [[ "$COMMAND" == "" ]]; then
11 echo "Error: You did not give me a command to run!"
21 --config|config|conf
) irreco_conf
"${ARGS[@]:1}";;
22 --make|
make) irreco_make
"${ARGS[@]:1}";;
23 --install|
install|inst
) irreco_install
"${ARGS[@]:1}";;
24 --clean|clean
) irreco_clean
"${ARGS[@]:1}";;
25 --src|src
) irreco_src
"${ARGS[@]:1}";;
26 *) echo "Error: Unknown command \"$COMMAND\"";
34 echo "Usage: $SCRIPT_NAME COMMAND [ options ]"
41 irreco_print_title
"AUTOGEN"
45 irreco_print_title
"CONFIGURE"
46 .
/configure
--prefix="$INSTALL_DIR" --enable-debug=yes "$@" \
47 --enable-dev=yes --with-database="http://localhost/irreco/webdb/"
50 "$SCRIPT_DIR"/fix-pkg-config.sh
--path "$INSTALL_DIR"/lib
55 if [ ! -e "Makefile" ]; then
58 generic_make irreco_print_title
"$@"
64 irreco_print_title
"INSTALL"
71 generic_clean irreco_print_title
75 # Prints a list of irreco sources and headers.
79 irreco_print_title
"CORE SOURCES"
80 echo -n "irreco_SOURCES = "
81 ls "$IRRECO_DIR"/src
/core \
82 |
egrep '\.[ch]$' |
grep 'irreco.*' | scripts_src_pad
84 irreco_print_title
"UTIL SOURCES"
85 echo -n "lib_irreco_util_la_SOURCES = "
86 ls "$IRRECO_DIR"/src
/util \
87 |
egrep '\.[ch]$' |
grep 'irreco.*' | scripts_src_pad
88 echo -n "irreco_util_header_DATA = "
89 ls "$IRRECO_DIR"/src
/util \
90 |
egrep '\.[ch]$' |
grep 'irreco.*\.h' | scripts_src_pad
92 irreco_print_title
"WEBDB SOURCES"
93 echo -n "lib_irreco_webdb_la_SOURCES = "
94 ls "$IRRECO_DIR"/src
/webdb \
95 |
egrep '\.[ch]$' |
grep 'irreco.*' | scripts_src_pad
100 print_title
"IRRECO $1"