2 # This is no real configure script. But it makes
3 # sure that all build dependencies are installed,
4 # if you are running on a well known distribution.
6 DISTRO
=$
(.
/distro _
) ||
{ \
7 echo "Your linux distribution is unknown. Good luck!"
10 echo "You are running on $DISTRO."
11 M
=distros
/Makefile.
$DISTRO
14 echo "This distribution is not supported. You might succeed anyway."
19 if ! which make >/dev
/null
2>&1; then
20 echo "Please install \"make\" before executing this script."
24 BUILD_PACS
=$
( make -f echo.mk FILE
=$M VAR
=BUILD_PACKAGES
)
25 PACKAGER
=$
( make -f echo.mk FILE
=$M VAR
=PACKAGE_INSTALL
)
26 BECOME_ROOT
=$
( make -f echo.mk FILE
=$M VAR
=BECOME_ROOT
)
28 echo "Packages needed for compilation:"
30 CMD
="$PACKAGER $BUILD_PACS"
33 CMD
="$BECOME_ROOT '$CMD'"
35 echo "Going to run >>>$CMD<<<..."
38 echo "OK - You are now ready for 'make && make pack'"
40 echo "ERROR. Some packages could not be installed. You will get "
41 echo "Problems while compiling if something is missing."