From d45de0ca0c89c076d03ef60c1edeed877dff5bd2 Mon Sep 17 00:00:00 2001 From: John Voltz Date: Tue, 11 Mar 2008 13:12:39 +0000 Subject: more robust development files in target handler --- scripts/copy.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 scripts/copy.sh (limited to 'scripts') diff --git a/scripts/copy.sh b/scripts/copy.sh new file mode 100755 index 000000000..613c4dd0a --- /dev/null +++ b/scripts/copy.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +STAGING_DIR=$1 +TARGET_DIR=$2 + +echo "Copying development files to target..." + +cp -a ${STAGING_DIR}/usr/include ${TARGET_DIR}/usr + +for LIBSDIR in /lib /usr/lib; do + for WILDCARD in *.a *.la; do + for FILE_PATH in `find ${STAGING_DIR}${LIBSDIR} -name ${WILDCARD}`; do + STAGING_STRIPPED=${FILE_PATH##${STAGING_DIR}} + EXTENDED_DIR=${PATH_FILE%/${WILDCARD}} + mkdir -p ${TARGET_DIR}${EXTENDED_DIR} + cp ${FILE_PATH} ${TARGET_DIR}${STAGING_STRIPPED} + #echo ${TARGET_DIR}${STAGING_STRIPPED} + done + done +done -- cgit v1.2.3