Imported Upstream version 2.9.0
[debian/cc1111] / device / lib / pic / libdev / mkall.sh
1 #!/bin/sh
2
3 # This script is supposed to recreate all device libraries and their
4 # accompanying header files from the gputils' header/*.inc files
5 # using sdcc/support/scripts/inc2h.pl.
6 #
7 # The devices to be created are listed in ./devices.txt, the output
8 # files will be located in ./build/, which is created before use.
9 #
10 # (c) 2007 by Raphael Neider <rneider @ web.de>
11 # This file is published under the terms of the GPLv2.
12
13 GPUTILS=$HOME/svn/gputils
14 SDCC=$HOME/svn/sdcc
15
16 mkdir build;
17 cd build;
18 cp $SDCC/device/lib/pic/libdev/pic14ports.txt .
19
20 cat $SDCC/device/lib/pic/libdev/devices.txt | while read PROC; do
21     echo $PROC;
22     $SDCC/support/scripts/inc2h.pl $PROC $GPUTILS;
23 done
24
25 cd ..;
26 mv build/*.c .
27 mv build/*.h $SDCC/device/include/pic/