Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / device / non-free / lib / pic16 / update.sh
blob003cd031b6c9f3573ebe2240dda15b9a7d6d8e62
1 #!/bin/sh
4 # Run this script every time the set of supported devices changes.
7 LIB=".";
8 OUTPUT="$LIB/processors.ac";
10 # Update configure script.
11 echo "### Generating configure script for AM_CONDITIONALs ...";
12 rm -f "$OUTPUT";
13 for i in "$LIB/libdev/pic1"*.c; do
14 p="${i##*/pic}";
15 p="${p%.c}";
16 P=$(echo "$p" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ);
17 cat >> "$OUTPUT" <<EOT
18 AM_CONDITIONAL([ENABLE_${P}], [ grep -i "^${P}\$" pics.supported >/dev/null 2>/dev/null ])
19 EOT
20 done;
22 # Update libdev/Makefile.am.
23 echo "### Updating libdev/Makefile.am ...";
24 ( cd "$LIB/libdev" && sh ./mkmk.sh > Makefile.am )
26 # Recreate configure script.
27 echo "### Updating build system ..."
28 ( cd "$LIB" && autoreconf )
30 # Also update the free library part.
31 echo "### Updating dependent build system in ../../../lib/pic16 ..."
32 ( cd "$LIB/../../../lib/pic16/libio" && sh ./mkmk.sh > Makefile.am )
33 ( cd "$LIB/../../../lib/pic16" && autoreconf )