Przeglądaj źródła

* Delete tmpfile when bailing out

Bryan Drewery 14 lat temu
rodzic
commit
bf064a1982
1 zmienionych plików z 1 dodań i 0 usunięć
  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