Changeset 4261


Ignore:
Timestamp:
Jan 13, 2010, 12:54:49 AM (7 years ago)
Author:
sam
Message:

Fix check-build on platforms without sh's pushd/popd or grep's \<\>.

Location:
zzuf/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/msvc/config.h

    r4258 r4261  
    1717 */
    1818
    19 #define ATTRIBUTE_PRINTF(x,y)
    20 
    21 #define FILE_BASE /* FIXME */
    22 #define FILE_CNT _cnt
    23 #define FILE_PTR _ptr
     19#define ATTRIBUTE_PRINTF(x,y) /* */
    2420#define FPOS_CAST(x) (x)
    2521#define HAVE_ACCEPT 1
     
    105101#define HAVE_WINSOCK2_H 1
    106102/* #undef HAVE__IO_GETC */
    107 #define HAVE__PIPE
     103#define HAVE__PIPE 1
    108104/* #undef HAVE___FILBUF */
    109105/* #undef HAVE___FOPEN64 */
  • zzuf/trunk/test/check-build

    r4253 r4261  
    2424for key in $(sed -ne 's/.*#undef *\([A-Za-z0-9_]*\).*/\1/p' "$config_h_in");
    2525do
    26   if ! grep '[ef] \<'"$key"'\>' "$msvc_config_h" >/dev/null 2>&1; then
     26  if ! grep "[ef] $key[ (]" "$msvc_config_h" >/dev/null 2>&1; then
    2727    echo "error: $key missing from msvc/config.h"
    2828    failure=1
     
    4040failure=0
    4141for dir in src test; do
    42   pushd ../$dir >/dev/null
     42  (cd $(dirname "$0")/../$dir
    4343  for x in $(make echo-sources); do
    4444    if grep '[[:space:]]$' "$x" >/dev/null 2>&1; then
     
    5050      failure=1
    5151    fi
    52   done
    53   popd >/dev/null
     52  done)
    5453done
    5554if test "$failure" != "0"; then
  • zzuf/trunk/test/functions.inc

    r4253 r4261  
    7777    fi
    7878    echo "*** all $TESTED tests OK ***"
    79     echo ""
    8079}
    8180
Note: See TracChangeset for help on using the changeset viewer.