From 83dcd2b34cefd5b324b5a4f54be141a858dc5238 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 27 Feb 2013 22:19:53 +0100 Subject: Generalization: - Rework install_dependencies: make it a global function, not per tools.build - Determine packet manager of local system (currently supports apt/dpkg and zypper/rpm) - Look for packet manager specific tools.conf.$MANAGER first, use tools.conf otherwise - Added list_package_files which should be used instead of "for $(dpkg -L | grep ...) ... >> ... done" --- remote/tools/dbus/dbus.build | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'remote/tools/dbus/dbus.build') diff --git a/remote/tools/dbus/dbus.build b/remote/tools/dbus/dbus.build index 83cc8efa..e0e03943 100644 --- a/remote/tools/dbus/dbus.build +++ b/remote/tools/dbus/dbus.build @@ -1,9 +1,5 @@ #!/bin/bash -install_dependencies() { - echo "No dependencies." -} - fetch_source() { echo "Extracting from running system..." } @@ -14,10 +10,7 @@ build() { COPYLIST="list_dpkg_output" [ -e "${COPYLIST}" ] && rm "${COPYLIST}" - for FILE in $(dpkg -L dbus | grep -v share/doc | grep -v share/man) - do - [ ! -d "${FILE}" ] && echo ${FILE} >> "${COPYLIST}" - done + list_packet_files >> "${COPYLIST}" # prepare target dir & copy there [ ! -d ${BUILDDIR} ] && mkdir -p ${BUILDDIR} -- cgit v1.2.3-55-g7522