Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source3/script/build_idl.sh

    r414 r745  
    11#!/bin/sh
    22
    3 ARGS="--includedir=../librpc/idl --outputdir $PIDL_OUTPUTDIR --header --ndr-parser --samba3-ndr-server --samba3-ndr-client $PIDL_ARGS --"
     3if [ "$1" = "--full" ]; then
     4        FULL=1
     5        shift 1
     6else
     7        FULL=0
     8fi
     9
     10ARGS="--includedir=../librpc/idl --outputdir $PIDL_OUTPUTDIR --header --ndr-parser --client --samba3-ndr-server $PIDL_ARGS --"
    411IDL_FILES="$*"
    512
     
    1118PIDL="$PIDL $ARGS"
    1219
     20if [ $FULL = 1 ]; then
     21        echo "Rebuilding all idl files"
     22        $PIDL $IDL_FILES || exit 1
     23        exit 0
     24fi
     25
    1326##
    1427## Find newer files rather than rebuild all of them
     
    1730list=""
    1831for f in ${IDL_FILES}; do
    19         basename=`basename $f .idl`
    20         ndr="$PIDL_OUTPUTDIR/ndr_$basename.c"
     32        b=`basename $f .idl`
     33        outfiles="$b.h ndr_$b.h srv_$b.c"
     34        outfiles="$outfiles ndr_$b.c srv_$b.h"
    2135
    22         if [ -f $ndr ]; then
    23                 if [ "x`find $f -newer $ndr -print`" = "x$f" ]; then
    24                         list="$list $f"
    25                 fi
    26         else
     36        for o in $outfiles; do
     37            [ -f $PIDL_OUTPUTDIR/$o ] || {
    2738                list="$list $f"
    28         fi
     39                break
     40            }
     41            test "`find $f -newer $PIDL_OUTPUTDIR/$o`" != "" && {
     42                list="$list $f"
     43                break
     44            }
     45        done
    2946done
    3047
Note: See TracChangeset for help on using the changeset viewer.