3 # This script can be used to recreate the device library files from
6 # mkdir temp && cd temp && ../recreate.sh
8 # You will need to adjust the paths to SDCC and gputils before running!
10 GPUTILS
=$HOME/svn
/gputils
34 if ! is_in
$i ..
/pic14regs.h ..
/pic16fam.h
]
36 test -e $i && grep -q NO_LEGACY_NAMES
$i && NO_LEGACY_NAMES
="$NO_LEGACY_NAMES $i"
42 if ! is_in
$i ..
/pic14regs.h ..
/pic16fam.h
]
44 if is_in
$i $NO_LEGACY_NAMES
50 DEV
=`echo "$i" | sed -e "s:../pic::;s/\.h//"`;
51 echo "Creating ${DEV} ${emit_legacy_names}...";
52 "${SDCC}/support/scripts/inc2h.pl" "${DEV}" "${GPUTILS}" "${emit_legacy_names}";