mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
make script more verbose and deal with CRLF line endings
This commit is contained in:
parent
a66846ef22
commit
5c8838ce3f
@ -1,5 +1,6 @@
|
||||
#!/usr/bin/sh
|
||||
#!/usr/bin/zsh
|
||||
|
||||
printf "Moving openwsn stack ..."
|
||||
# move openwsn stack directory up
|
||||
mv openwsn-fw-RB-1.4/firmware/openos/openwsn/ ./
|
||||
|
||||
@ -7,7 +8,6 @@ mv openwsn-fw-RB-1.4/firmware/openos/openwsn/ ./
|
||||
mv openwsn-fw-RB-1.4/firmware/openos/bsp/boards/telosb/spi.c openwsn
|
||||
mv openwsn-fw-RB-1.4/firmware/openos/bsp/boards/telosb/uart.c openwsn
|
||||
mv openwsn-fw-RB-1.4/firmware/openos/bsp/boards/telosb/leds.c openwsn
|
||||
mv openwsn-fw-RB-1.4/firmware/openos/bsp/boards/telosb/board openwsn/board_ow.c
|
||||
mv openwsn-fw-RB-1.4/firmware/openos/bsp/boards/telosb/board.c openwsn/board_ow.c
|
||||
mv openwsn-fw-RB-1.4/firmware/openos/bsp/boards/telosb/board_info.h openwsn
|
||||
mv openwsn-fw-RB-1.4/firmware/openos/bsp/boards/telosb/radiotimer.c openwsn
|
||||
@ -27,7 +27,8 @@ mv openwsn-fw-RB-1.4/firmware/openos/drivers/common/openhdlc.* openwsn
|
||||
mv openwsn-fw-RB-1.4/firmware/openos/drivers/common/opentimers.* openwsn
|
||||
mv openwsn-fw-RB-1.4/firmware/openos/drivers/common/openserial.{c,h} openwsn
|
||||
mv openwsn-fw-RB-1.4/firmware/openos/kernel/openos/scheduler.{c,h} openwsn
|
||||
|
||||
printf "[OK]\n"
|
||||
printf "Removing files not needed ... "
|
||||
# remove all *dox files
|
||||
for i in `find ./openwsn -name "*.dox"`; do
|
||||
rm -f $i
|
||||
@ -35,7 +36,9 @@ done
|
||||
|
||||
rm -f openwsn/SConscript
|
||||
rm -rf openwsn/02.5-MPLS
|
||||
printf "[OK]\n"
|
||||
|
||||
printf "Initialize Makefile structure ..."
|
||||
# create empty Makefiles
|
||||
touch openwsn/Makefile
|
||||
|
||||
@ -58,10 +61,20 @@ rm -f openwsn/07-App/rxl1/Makefile \
|
||||
openwsn/07-App/layerdebug/Makefile \
|
||||
openwsn/07-App/imu/Makefile \
|
||||
openwsn/07-App/heli/Makefile
|
||||
printf "[OK]\n"
|
||||
|
||||
mkdir openwsn/07-App/r6tus
|
||||
touch openwsn/07-App/r6tus/r6tus.c
|
||||
touch openwsn/07-App/r6tus/r6tus.h
|
||||
|
||||
printf "Clean up ..."
|
||||
# clean not need files
|
||||
rm -rf openwsn-fw-RB-1.4
|
||||
printf "[OK]\n"
|
||||
|
||||
printf "Remove CRLF line endings ... "
|
||||
# deal with crlf line endings
|
||||
for i in `find ./openwsn -type f`; do
|
||||
perl -pi -e 's/\r\n/\n/g' $i
|
||||
done
|
||||
printf "[OK]\n"
|
||||
|
Loading…
Reference in New Issue
Block a user