Changeset e6312c0 in git


Ignore:
Timestamp:
27/01/14 11:14:59 (6 years ago)
Author:
Olly Betts <olly@…>
Branches:
line_contents, master, stereo, travis-osx
Children:
8c1d295
Parents:
bd2e33a
Message:

make_release: Add simple check for comments in C sources.
make_release: Before release, build with -Werror to catch any
warnings which may have been missed.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    rbd2e33a re6312c0  
     1Mon Jan 27 11:13:31 GMT 2014  Olly Betts <olly@survex.com>
     2
     3        * make_release: Add simple check for // comments in C sources.
     4        * make_release: Before release, build with -Werror to catch any
     5          warnings which may have been missed.
     6
    17Mon Jan 27 10:25:02 GMT 2014  Olly Betts <olly@survex.com>
    28
  • make_release

    rbd2e33a re6312c0  
    1010
    1111if test x"$rel" = xyes ; then
     12  cd src
     13  perl -ne 'if (m!(.*)//! && $1 !~ / \* /) {print "$ARGV:$.:// comment in C source\n"; exit 1}' \
     14      *.c \
     15      cavern.h commands.h cmdline.h date.h datain.h debug.h\
     16      filelist.h filename.h getopt.h hash.h img.c img.h img_hosted.h ini.h\
     17      listpos.h matrix.h message.h namecmp.h netartic.h netbits.h\
     18      netskel.h network.h osalloc.h osdepend.h ostypes.h out.h readval.h str.h\
     19      useful.h validate.h whichos.h
     20  cd ..
     21
    1222  # Check there are no uncommitted changes.
    1323  if git commit -a --dry-run >/dev/null 2>/dev/null ; then
     
    2434  mv INSTALL.keep INSTALL
    2535  ./configure CC=gcc CXX=g++
     36  make CFLAGS='-Werror' CXXFLAGS='-Werror'
    2637  make distcheck
    27   # FIXME: setting c89 doesn't define unix and suppresses getc_unlocked().
    28   # Tell the preprocessor to be C89 - this makes it reject // comments
    29   # FIXME -Werror makes configure explode CFLAGS="-Werror -Wp,-std=c89"
    30   # FIXME   CXXFLAGS="-Werror"
    3138else
    3239  make dist
Note: See TracChangeset for help on using the changeset viewer.