adding install_headers.sh script

This commit is contained in:
bg 2012-09-19 17:44:17 +02:00
parent 3a80fbe29e
commit 810e507c98
1 changed files with 18 additions and 0 deletions

18
install_headers.sh Normal file
View File

@ -0,0 +1,18 @@
#!/bin/bash
#PREFIX="/usr/local/arm-none-eabi/include/"
PREFIX="/usr/arm-elf/include/"
TARGET_DIR="crypto/"
SRC_FILE="main_headers"
OWNER="root"
GROUP="root"
MODE="644"
for i in `cat $SRC_FILE`; do
x=`echo $i | sed 's#^.*/##g'`
sed -f header_install_modifier.sed "${i}" > "header_tmp/${x}"
/usr/bin/install -o $OWNER -g $GROUP -m $MODE -D "header_tmp/${x}" ${PREFIX}${TARGET_DIR}${x};
done;