Sfoglia il codice sorgente

* Delete tmpfile when bailing out

Bryan Drewery 14 anni fa
parent
commit
bf064a1982
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/generate_defs.sh

+ 1 - 0
src/generate_defs.sh

@@ -47,6 +47,7 @@ for file in $(grep -l DLSYM_GLOBAL src/*.c|grep -v "src/_"); do
     if [ "${typedef%;}" = "${typedef}" ]; then
       echo "Error: Unable to generate typedef for: ${symbol}" >&2
       echo "$typedef"
+      rm -rf $TMPFILE
       exit 1
     fi