tools/ctdb: Pass memory context for returning nodes in parse_nodestring
[amitay/samba.git] / ctdb / libctdb / test / tools / extract-help
1 #! /bin/sh
2 # Extract XML help from .c file.
3
4 FILE=$1
5 LINE=`expr $2 + 1`
6
7 END=`tail -n +$LINE $1 | fgrep -n '*/' | cut -d: -f1 | head -n +1`
8 END=`expr $END - 1`
9
10 tail -n +$LINE $1 | head -n $END