1 VERSION = $(shell cat configure.ac.in |grep AC_INIT |sed -e 's/[^,]*, *//;s/,.*//' )
4 all: autogen.sh configure.ac.in
8 [ -e configure.ac.in ] || ( echo Must be run from grep source dir ; exit 1 )
9 rm -rf /tmp/grep-$(VERSION) && cp -aR $(SRCDIR) /tmp/grep-$(VERSION) && cd /tmp/grep-$(VERSION) && make -f Makefile.cvs cvs-clean && make -f Makefile.cvs && rm -rf autom4te.cache && (find . -type d -name CVS |xargs rm -rf) && cd .. && tar chf $(SRCDIR)/grep-$(VERSION).tar grep-$(VERSION)
11 grep-$(VERSION).tar.lz: grep-$(VERSION).tar
12 lzip -9ef grep-$(VERSION).tar
14 grep-$(VERSION).tar.bz2: grep-$(VERSION).tar
15 bzip2 -9f grep-$(VERSION).tar
17 grep-$(VERSION).tar.gz: grep-$(VERSION).tar
18 gzip -9f grep-$(VERSION).tar
20 rpm: grep-$(VERSION).tar.bz2
21 rpm -ts --define '_srcrpmdir $(SRCDIR)' grep-$(VERSION).tar.bz2
23 # make cvs-clean blatantly stolen from KDE CVS ;)
25 @if test ! -d CVS; then \
26 echo "You don't have a toplevel CVS directory."; \
27 echo "You most certainly didn't use cvs to get these sources."; \
28 echo "But this function depends on cvs's information."; \
32 dirs=`find . -type d | grep -v CVS | sed -e "s#^./##"` ;\
34 if test ! -d "$$pwd/$$i/CVS"; then \
41 if test ! -d "$$f"; then \
42 if grep "^/$$f/" CVS/Entries > /dev/null; then \
46 rm -f "$$pwd/$$i/$$f"; \