head     1.1;
branch   1.1.1;
access   ;
symbols  Release:1.1.1.1 Vendor:1.1.1;
locks    ; strict;
comment  @# @;


1.1
date     2005.02.20.02.45.04;  author augur;  state Exp;
branches 1.1.1.1;
next     ;

1.1.1.1
date     2005.02.20.02.45.04;  author augur;  state Exp;
branches ;
next     ;


desc
@@



1.1
log
@Initial revision
@
text
@
PACKAGE = swish-python
VERSION = 0.1
PYTHON_BIN = /usr/bin/python
SWIG_BIN = /usr/bin/swig
INSTALL_BIN = /usr/bin/install -m0644

DEBFILES = \
    debian/changelog \
    debian/compat \
    debian/copyright \
    debian/control \
    debian/rules \
    debian/files \

EXTRA_DIST = \
    BUGS AUTHORS README INSTALL COPYING \
    examples/search.py

DISTFILES = \
    Makefile setup.txt swish.py \
    setup.py swish.i \
    swish_wrap.c $(DEBFILES) $(EXTRA_DIST)


all: swig module

swig: swish_wrap.c
swish_wrap.c:
	$(SWIG_BIN) -python -module swish swish.i

module:
	$(PYTHON_BIN) setup.py build

install: module
	$(PYTHON_BIN) setup.py install `test -n "$(DESTDIR)" && echo --root $(DESTDIR)`

clean:
	rm -fr build debian/swish-python debian/DEBIAN configure-stamp build-stamp *.pyc

realclean: clean
	rm -f swish.py swish_wrap.c

distclean: realclean
	rm -f $(PACKAGE)-$(VERSION).tar.gz

dist: swig
	mkdir -p $(PACKAGE)-$(VERSION)
	for file in $(DISTFILES); do \
	  $(INSTALL_BIN) -D $$file $(PACKAGE)-$(VERSION)/$$file; \
	done
	tar czf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
	test -d $(PACKAGE)-$(VERSION) && rm -fr $(PACKAGE)-$(VERSION)

deb:
	fakeroot dpkg-buildpackage

@


1.1.1.1
log
@Initial version of Swish-e Python language binding.

2005-02-19 - DLN - The following functions are not fully implemented:
  SWISH_HEADER_VALUE SwishParsedWords( SW_RESULTS, const char *index_name );
  SWISH_HEADER_VALUE SwishRemovedStopwords( SW_RESULTS, const char *index_name );
  SWISH_HEADER_VALUE SwishHeaderValue( SW_HANDLE, const char *index_name, const char *cur_header, SWISH_HEADER_TYPE *type );
  SWISH_HEADER_VALUE SwishResultIndexValue( SW_RESULT, const char *name, SWISH_HEADER_TYPE *type );
  SW_FUZZYWORD SwishFuzzyWord( SW_RESULT r, char *word );

@
text
@@
