install -m 644 $(DIR_SOURCE)/initscripts/extras/$(INITSCRIPT).conf /etc/init/
PYTHON_COMPILE = find /usr/lib/python*/ -name *.py | xargs /usr/bin/py-compile
+PYTHON_EXTRACT_EGG = $(DIR_SOURCE)/scripts/py-extract-egg
DO_FIND_ROOTFILE = $$(find $(DIR_SOURCE)/rootfiles/{core,extras,debug}/{$(TARGET),} -type f \
-maxdepth 1 -name "$(LFS_FILE)" 2>/dev/null | head -n1)
--- /dev/null
+#!/bin/bash
+
+# Extract python eggs
+
+EGG=${1}
+
+if [ -z "${EGG}" ] || [ ! -e "${EGG}" ]; then
+ echo "$0: No egg given or file does not exist." >&2
+ exit 1
+fi
+
+cd $(dirname ${EGG})
+
+unzip -o ${EGG} || exit 1
+
+rm -rf EGG-INFO #${EGG}