diff --git a/scripts/copy.sh b/scripts/copy.sh index 613c4dd0ab..410606d5ad 100755 --- a/scripts/copy.sh +++ b/scripts/copy.sh @@ -11,7 +11,7 @@ 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}} + EXTENDED_DIR=${STAGING_STRIPPED%/${WILDCARD}} mkdir -p ${TARGET_DIR}${EXTENDED_DIR} cp ${FILE_PATH} ${TARGET_DIR}${STAGING_STRIPPED} #echo ${TARGET_DIR}${STAGING_STRIPPED}