svn commit: samba r26186 - in branches/SAMBA_4_0: . source
source/scripting/python
jelmer at samba.org
jelmer at samba.org
Wed Nov 28 22:41:30 GMT 2007
Author: jelmer
Date: 2007-11-28 22:41:29 +0000 (Wed, 28 Nov 2007)
New Revision: 26186
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=26186
Log:
Generate SWIG files as part of autogen.sh
Modified:
branches/SAMBA_4_0/
branches/SAMBA_4_0/source/autogen.sh
branches/SAMBA_4_0/source/main.mk
branches/SAMBA_4_0/source/scripting/python/config.mk
Changeset:
Property changes on: branches/SAMBA_4_0
___________________________________________________________________
Name: bzr:revision-info
...skipped...
Name: bzr:revision-id:v3-trunk0
...skipped...
Modified: branches/SAMBA_4_0/source/autogen.sh
===================================================================
--- branches/SAMBA_4_0/source/autogen.sh 2007-11-28 20:13:28 UTC (rev 26185)
+++ branches/SAMBA_4_0/source/autogen.sh 2007-11-28 22:41:29 UTC (rev 26186)
@@ -63,6 +63,16 @@
rm -rf autom4te*.cache
+# Run swig if it is available
+SWIG=swig
+SWIG_FILES="./scripting/python/misc.i ./auth/auth.i ./auth/credentials/credentials.i ./lib/talloc/talloc.i ./lib/ldb/ldb.i ./lib/registry/registry.i ./lib/tdb/tdb.i ./libcli/swig/libcli_smb.i ./libcli/swig/libcli_nbt.i ./librpc/rpc/dcerpc.i"
+if which $SWIG >/dev/null 2>&1; then
+ for I in $SWIG_FILES
+ do
+ echo "$0: running $SWIG for $I"
+ swig -python -keyword $I
+ done
+fi
+
echo "Now run ./configure and then make."
exit 0
-
Modified: branches/SAMBA_4_0/source/main.mk
===================================================================
--- branches/SAMBA_4_0/source/main.mk 2007-11-28 20:13:28 UTC (rev 26185)
+++ branches/SAMBA_4_0/source/main.mk 2007-11-28 22:41:29 UTC (rev 26186)
@@ -279,7 +279,7 @@
removebackup:
-rm -f *.bak *~ */*.bak */*~ */*/*.bak */*/*~ */*/*/*.bak */*/*/*~
-realdistclean: distclean removebackup
+realdistclean:: distclean removebackup
-rm -f include/config_tmp.h.in
-rm -f version.h
-rm -f configure
Modified: branches/SAMBA_4_0/source/scripting/python/config.mk
===================================================================
--- branches/SAMBA_4_0/source/scripting/python/config.mk 2007-11-28 20:13:28 UTC (rev 26185)
+++ branches/SAMBA_4_0/source/scripting/python/config.mk 2007-11-28 22:41:29 UTC (rev 26186)
@@ -22,14 +22,14 @@
.i_wrap.c:
$(SWIG) -Wall -I$(srcdir)/scripting/swig -python -keyword $<
-clean::
+realdistclean::
@echo "Removing SWIG output files"
@-rm -f bin/python/*
# FIXME: Remove _wrap.c files
pythonmods: $(PYTHON_DSOS)
-PYDOCTOR_MODULES=bin/python/ldb.py bin/python/auth.py bin/python/credentials.py bin/python/registry.py
+PYDOCTOR_MODULES=bin/python/ldb.py bin/python/auth.py bin/python/credentials.py bin/python/registry.py bin/python/tdb.py
pydoctor:: pythonmods
LD_LIBRARY_PATH=bin/shared PYTHONPATH=bin/python pydoctor --make-html --docformat=restructuredtext --add-package scripting/python/samba/ $(addprefix --add-module , $(PYDOCTOR_MODULES))
More information about the samba-cvs
mailing list