]> git.notmuchmail.org Git - notmuch/blobdiff - lib/gen-version-script.sh
build: add "set -eu" to version script generation
[notmuch] / lib / gen-version-script.sh
index bf152cc9b2da286e0fc71db6ad0bdbf28dd3bf80..847700114ef8df1f634db307dd22423c655c90e8 100644 (file)
@@ -1,3 +1,4 @@
+set -eu
 
 # we go through a bit of work to get the unmangled names of the
 # typeinfo symbols because of
@@ -23,5 +24,6 @@ while read sym; do
            ;;
     esac
 done
+nm $* | awk '$1 ~ "^[0-9a-fA-F][0-9a-fA-F]*$" && $2 == "T" && $3 ~ "^(getline|getdelim|canonicalize_file_name)$" {print $3 ";"}'
 sed  -n 's/^[[:space:]]*\(notmuch_[a-z_]*\)[[:space:]]*(.*/ \1;/p' $HEADER
 printf "local: *;\n};\n"