]> git.ipfire.org Git - ipfire-3.x.git/blobdiff - make.sh
naoki: Code cleanup. No functional changes.
[ipfire-3.x.git] / make.sh
diff --git a/make.sh b/make.sh
index d3d8f691491ea49247ae5e802f0c0ad125c3f9f0..c55dd14b82af5abaed1a84006113f6d5533552d9 100755 (executable)
--- a/make.sh
+++ b/make.sh
 ###############################################################################
 #
 
-NAME="IPFire"                       # Software name
-SNAME="ipfire"                      # Short name
-VERSION="3.0-prealpha2"             # Version number
-SLOGAN="Gluttony"                   # Software slogan
-
 BASEDIR=/ipfire-3.x
 
-. ${BASEDIR}/tools/ui-functions
-
-NAOKI=${BASEDIR}/tools/naoki
+. ${BASEDIR}/tools/common-include
 
 while [ $# -gt 0 ]; do
        case "${1}" in
@@ -37,6 +30,10 @@ while [ $# -gt 0 ]; do
                        DEBUG=1
                        log DEBUG "Debugging mode enabled by command line."
                        ;;
+               --toolchain)
+                       TOOLCHAIN=1
+                       log DEBUG "Toolchain mode enabled by command line."
+                       ;;
                *)
                        action=${1}
                        shift
@@ -46,23 +43,25 @@ while [ $# -gt 0 ]; do
        shift
 done
 
+export DEBUG TOOLCHAIN
+
 function package() {
        local action=${1}
        shift
 
        case "${action}" in
                dependencies|deps)
-                       echo -e "${BOLD}Build dependencies:${NORMAL} $(package_build_dependencies $@)"
-                       echo -e "${BOLD}Dependencies:${NORMAL}       $(package_dependencies $@)"
+                       echo -e "${BOLD}Build dependencies:${NORMAL} $(package_build_dependencies $@ | tr '\n' ' ')"
+                       echo -e "${BOLD}Dependencies:${NORMAL}       $(package_runtime_dependencies $@ | tr '\n' ' ')"
                        ;;
                find)
                        find_package $@
                        ;;
                list)
-                       ${NAOKI} --toolchain list
+                       package_list
                        ;;
                profile|info)
-                       ${NAOKI} profile $@
+                       package_profile $(find_package $@)
                        ;;
                _info)
                        package_info $(find_package $@)
@@ -70,23 +69,9 @@ function package() {
        esac
 }
 
-function listmatch() {
-       local arg=${1}
-       shift
-       
-       local value
-       for value in $@; do
-               if [ "${arg}" == "${value}" ]; then
-                       return 0
-               fi
-       done
-       return 1
-}
-
-
 case "${action}" in
        package|pkg)
-               package $@
+               package $@e
                ;;
        toolchain)
                TOOLCHAIN=1