Imported Upstream version 2.9.0
[debian/cc1111] / device / include / pic / recreate.sh
1 #!/bin/sh
2
3 # This script can be used to recreate the device library files from
4 # gputils' .inc files.
5 # Usage:
6 #     mkdir temp && cd temp && ../recreate.sh
7 #
8 # You will need to adjust the paths to SDCC and gputils before running!
9
10 GPUTILS=$HOME/svn/gputils
11 SDCC=$HOME/svn/plain
12
13 for i in ../pic*.h; do
14     if [ ! "$i" = "../pic14regs.h" ]; then
15         DEV=`echo "$i" | sed -e "s:../pic::;s/\.h//"`;
16         echo "Creating ${DEV}...";
17         "${SDCC}/support/scripts/inc2h.pl" "${DEV}" "${GPUTILS}";
18     fi
19 done
20