2004-09-21 08:49:16 -04:00
|
|
|
SHELL = /bin/sh
|
|
|
|
|
2004-09-20 12:00:13 -04:00
|
|
|
PKGNAME=scsh-expect
|
|
|
|
RELEASE=0.1
|
|
|
|
|
2004-09-21 08:49:16 -04:00
|
|
|
distname=$(PKGNAME)-$(RELEASE)
|
|
|
|
|
|
|
|
distdir = /tmp
|
|
|
|
|
|
|
|
DISTFILES=README \
|
|
|
|
INSTALL \
|
|
|
|
COPYING \
|
|
|
|
AUTHORS \
|
|
|
|
pkg-def.scm \
|
|
|
|
scheme/interact.scm \
|
|
|
|
scheme/expect.scm \
|
|
|
|
scheme/chat.scm \
|
|
|
|
scheme/packages.scm \
|
|
|
|
scheme/tty-utils.scm \
|
|
|
|
doc/chat.doc \
|
|
|
|
doc/expect.doc \
|
|
|
|
examples/timed-choice.scm \
|
|
|
|
examples/ssh-same-path.scm \
|
|
|
|
examples/ping-and-mail.scm \
|
2004-09-20 12:00:13 -04:00
|
|
|
|
2004-09-21 08:49:16 -04:00
|
|
|
.PHONY: dist
|
2004-09-20 12:00:13 -04:00
|
|
|
|
2004-09-21 08:49:16 -04:00
|
|
|
dist:
|
|
|
|
distname=$(distname) && \
|
|
|
|
distfile=$(distdir)/$$distname.tar.gz && \
|
|
|
|
if [ -d $(distdir) ] && \
|
|
|
|
[ -w $$distfile -o -w $(distdir) ]; then \
|
|
|
|
rm -f $$distname && \
|
|
|
|
ln -s . $$distname && \
|
|
|
|
files='' && \
|
|
|
|
for i in $(DISTFILES); do \
|
|
|
|
if [ "$$i" != "c/sysdep.h" ]; then \
|
|
|
|
files="$$files $$distname/$$i"; \
|
|
|
|
fi \
|
|
|
|
done && \
|
|
|
|
tar --exclude .cvsignore --exclude CVS -cf - $$files | \
|
|
|
|
gzip --best >$$distfile && \
|
|
|
|
rm $$distname; \
|
|
|
|
else \
|
|
|
|
echo "Can't write $$distfile" >&2; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
2004-09-20 12:00:13 -04:00
|
|
|
|