X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=functions;h=8ee7dd02706989af08d9ec79354303c9bd907e8c;hb=8538236bf31cbcb8acf1b7256202539f90d3fe48;hp=b799c5115e93b7993d50b06930828129fbf5a7b7;hpb=f9cf3632a64429991fa5e6f556b0c4017e0e9435;p=hvlinux.git diff --git a/functions b/functions index b799c51..8ee7dd0 100644 --- a/functions +++ b/functions @@ -22,6 +22,8 @@ BRACKET="\033[1;34m" TAR_OPTS="-b8" +HV_FONTS_PATH="/usr/share/fonts" + # It seems that when compiling bash-4.0, using # "make -j 1" is causing problems... if [ "x${MAKEJOBS}" = "x1" ]; then @@ -97,7 +99,7 @@ get_pkg_name() return 1 fi - echo ${1} | sed "s!^\(.*\)-.*!\1!g" + echo ${1} | sed "s!^\(.*\)-[0-9]*\.[0-9]*.*!\1!g" } # Saves the content of CFLAGS and CXXFLAGS environment variables. @@ -853,7 +855,14 @@ rcmd() # Executing command ${CMD_WITH_ARGS} 1>> ${LFS_LOG_FILE} 2>&1 - eval_retval + if [ $? -ne 0 ]; then + print_status failure + if [ -n "${RCMD_NO_EXIT}" ]; then + return ${EXIT_FAILURE} + else + exit ${EXIT_FAILURE} + fi + fi # Displaying build time after the package name print_status success