2008-03-11 14:12:39 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
STAGING_DIR=$1
|
|
|
|
TARGET_DIR=$2
|
|
|
|
|
|
|
|
echo "Copying development files to target..."
|
|
|
|
|
2010-04-30 02:24:08 +02:00
|
|
|
cp -af ${STAGING_DIR}/usr/include ${TARGET_DIR}/usr
|
2008-03-11 14:12:39 +01:00
|
|
|
|
|
|
|
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}}
|
2008-03-11 14:14:26 +01:00
|
|
|
EXTENDED_DIR=${STAGING_STRIPPED%/${WILDCARD}}
|
2008-03-11 14:12:39 +01:00
|
|
|
mkdir -p ${TARGET_DIR}${EXTENDED_DIR}
|
2010-04-30 02:24:08 +02:00
|
|
|
cp -fa ${FILE_PATH} ${TARGET_DIR}${STAGING_STRIPPED}
|
2008-03-11 14:12:39 +01:00
|
|
|
#echo ${TARGET_DIR}${STAGING_STRIPPED}
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|