From cb87a3dcc265250bd1eee988f31dde3679567f69 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sun, 4 Dec 2011 08:33:57 +0100 Subject: [PATCH] scripts/unpack: add support for scripts to rename builddirs before patching Signed-off-by: Stephan Raue --- scripts/unpack | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/unpack b/scripts/unpack index e4a18879f1..ab00848f2e 100755 --- a/scripts/unpack +++ b/scripts/unpack @@ -66,6 +66,8 @@ if [ -n "$PKG_URL" ]; then $SCRIPTS/extract $1 "$1*.7z" $BUILD fi +[ -f "$PKG_DIR/rename" ] && $PKG_DIR/rename $@ >&$VERBOSE_OUT + if [ -d "$PKG_DIR/sources" ]; then [ ! -d "$BUILD/${PKG_NAME}-${PKG_VERSION}" ] && mkdir -p $BUILD/${PKG_NAME}-${PKG_VERSION} cp -PRf $PKG_DIR/sources/* $BUILD/${PKG_NAME}-${PKG_VERSION}