diff options
-rw-r--r-- | dist/s_all | 2 | ||||
-rw-r--r-- | dist/s_export (renamed from dist/s_symbols) | 2 | ||||
-rw-r--r-- | dist/s_export.list (renamed from dist/s_symbols.list) | 0 | ||||
-rwxr-xr-x | dist/s_win | 14 |
4 files changed, 16 insertions, 2 deletions
diff --git a/dist/s_all b/dist/s_all index b63ed314453..96e69ddff04 100644 --- a/dist/s_all +++ b/dist/s_all @@ -66,6 +66,7 @@ run "sh ./s_tags" "building tags files" run "sh ./s_copyright" "checking copyright notices" run "sh ./s_define" "checking for unused #defines" +run "sh ./s_export" "checking external symbol names" run "sh ./s_funcs" "checking for unused functions" run "sh ./s_getopt" "checking for incorrect getopt usage" run "sh ./s_lang" "checking for SWIG generated name conflicts" @@ -74,7 +75,6 @@ run "sh ./s_stat" "checking for unused statistics fields" run "sh ./s_string" "checking string spelling" run "python style.py" "checking style (pass 1)" run "sh ./s_style" "checking style (pass 2)" -run "sh ./s_symbols" "checking external symbol names" run "sh ./s_typedef -c" "checking for unused typedefs" run "sh ./s_whitespace" "checking whitespace" run "sh ./s_win" "checking windows config" diff --git a/dist/s_symbols b/dist/s_export index e590ab6f62c..1212b5b2c1f 100644 --- a/dist/s_symbols +++ b/dist/s_export @@ -23,7 +23,7 @@ esac check() { - (sed -e '/^#/d' s_symbols.list && + (sed -e '/^#/d' s_export.list && eval $NM | sed 's/.* //' | egrep -v '^__wt') | diff --git a/dist/s_symbols.list b/dist/s_export.list index 8f469e94433..8f469e94433 100644 --- a/dist/s_symbols.list +++ b/dist/s_export.list diff --git a/dist/s_win b/dist/s_win index 187de91e498..cdfc71a8a1e 100755 --- a/dist/s_win +++ b/dist/s_win @@ -26,6 +26,19 @@ win_config() } } +win_export() +{ + # Build the Windows list of exported symbols. + f='../build_win/wiredtiger.def' + (echo 'LIBRARY WIREDTIGER' + echo 'EXPORTS' + sed -e '/^$/d' \ + -e '/^#/d' \ + -e 's/^/ /') < s_export.list > $t + cmp $t $f > /dev/null 2>&1 || + (echo "Building $f" && rm -f $f && cp $t $f) +} + win_filelist() { f='../build_win/filelist.win' @@ -65,6 +78,7 @@ win_filelist() } win_config +win_export win_filelist exit 0 |