]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - library-bundler
netradiant: strip 16-bit png to 8-bit, fix #153
[xonotic/netradiant.git] / library-bundler
index 54056c41fe527b803fc399d9ab42898931bcf1ee..e9a7ccddf12d1eef487ed2cb93015a2ea0eb7310 100755 (executable)
@@ -105,7 +105,7 @@ Multi::excludeLdd () {
                                        Common::noOp
                                # FreeBSD specific
                                elif echo "${ldd_line}" \
                                        Common::noOp
                                # FreeBSD specific
                                elif echo "${ldd_line}" \
-                                       | egrep -q '/libc++|/libgxxrt'
+                                       | egrep -q '/libc\+\+|/libgxxrt'
                                then
                                        Common::noOp
                                else
                                then
                                        Common::noOp
                                else
@@ -176,17 +176,17 @@ Multi::getRootPrefix () {
        local lib_file="${1}"
 
        case "${system_name}" in
        local lib_file="${1}"
 
        case "${system_name}" in
-               'linux'|'freebsd')
-                       echo "${lib_file}" \
-                       | cut -f2 -d'/'
+               'linux')
+                       echo 'usr'
+                       ;;
+               'freebsd'|'macos')
+                       echo 'usr/local'
                        ;;
                'windows')
                        basename "${lib_file}" \
                        | xargs -n1 -P1 which \
                        | cut -f2 -d'/'
                        ;;
                        ;;
                'windows')
                        basename "${lib_file}" \
                        | xargs -n1 -P1 which \
                        | cut -f2 -d'/'
                        ;;
-               'macos')
-                       echo 'usr/local'
        esac
 }
 
        esac
 }