diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-12-23 12:29:13 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:47:40 -0500 |
commit | 52728b7d416f7837fc3460a9e131355094649b15 (patch) | |
tree | 186bb015efcda9ce5e602c76fb26f1e8747e5a10 /source4/script/mkproto.sh | |
parent | 4bbb73894c7e30a33cda97480e42aadb6fa56c92 (diff) | |
download | samba-52728b7d416f7837fc3460a9e131355094649b15.tar.gz samba-52728b7d416f7837fc3460a9e131355094649b15.tar.bz2 samba-52728b7d416f7837fc3460a9e131355094649b15.zip |
r12446: Merge mkproto.sh's functionality into mkproto.pl
Allow specifying the _PUBLIC_ keyword on functions to indicate a function
is public.
Public prototypes can now be written to a seperate header, although this
functionality is not used yet.
(This used to be commit e3466df6dfb62bbf8bee3acfa92996945054c2dd)
Diffstat (limited to 'source4/script/mkproto.sh')
-rw-r--r-- | source4/script/mkproto.sh | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/source4/script/mkproto.sh b/source4/script/mkproto.sh deleted file mode 100644 index c6da261b65..0000000000 --- a/source4/script/mkproto.sh +++ /dev/null @@ -1,48 +0,0 @@ -#! /bin/sh - -LANG=C; export LANG -LC_ALL=C; export LC_ALL -LC_COLLATE=C; export LC_COLLATE - -if [ $# -lt 3 ] -then - echo "Usage: $0 perl [-h headerdefine] outputheader proto_obj" - exit 1 -fi - -perl="$1" -shift - -if [ x"$1" = x-h ] -then - headeropt="-h $2" - shift; shift; -else - headeropt="-h _`echo $1 | tr ./ __`_" -fi - -header="$1" -shift -headertmp="$header.$$.tmp~" - -proto_src="`echo $@ | tr ' ' '\n' | sed -e 's/\.o/\.c/g' | sort | uniq | egrep -v 'ubiqx/|wrapped'`" - -echo creating $header - -mkdir -p `dirname $header` - -${perl} script/mkproto.pl $headeropt $proto_src > $headertmp - -RET=$? - -if test x"$RET" != x"0";then - exit $RET -fi - -if cmp -s $header $headertmp 2>/dev/null -then - echo "$header unchanged" - rm $headertmp -else - mv $headertmp $header -fi |