forked from lavv17/lftp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
65 lines (58 loc) · 2.42 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
EXTRA_DIST = lftp.conf lftp.lsm FAQ MIRRORS BUGS FEATURES\
README README.debug-levels README.modules README.dnssec\
lib/hstrerror.c
if NEED_TRIO
TRIO = trio
endif
SUBDIRS = m4 doc lib $(TRIO) src po
ACLOCAL_AMFLAGS = -I m4
install-data-local:
if [ ! -f $(DESTDIR)$(sysconfdir)/lftp.conf ]; then \
$(mkinstalldirs) $(DESTDIR)$(sysconfdir); \
$(INSTALL_DATA) $(srcdir)/lftp.conf $(DESTDIR)$(sysconfdir)/lftp.conf; \
fi
uninstall-local:
if cmp -s $(DESTDIR)$(sysconfdir)/lftp.conf $(srcdir)/lftp.conf; then \
echo "$(DESTDIR)$(sysconfdir)/lftp.conf is not changed and will be removed."; \
rm -f $(DESTDIR)$(sysconfdir)/lftp.conf; \
fi
dist-hook:
@echo $(PACKAGE).spec updating...
@rm -f $(distdir)/$(PACKAGE).spec
@-sed "s/%define version .*/%define version $(VERSION)/" \
$(srcdir)/$(PACKAGE).spec > $(distdir)/$(PACKAGE).spec && \
cp $(distdir)/$(PACKAGE).spec $(srcdir)/$(PACKAGE).spec
@echo $(PACKAGE).lsm updating...
@rm -f $(distdir)/$(PACKAGE).lsm
@-SIZE=`$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c | wc -c`; SIZE=`expr \( $$SIZE + 512 \) / 1024`; echo Size: $$SIZE kB; \
DATE=`date +%Y-%m-%d`; echo Date: $$DATE; \
sed -e "s/Version: .*/Version: $(VERSION)/" \
-e "s/[0-9]* kB $(PACKAGE)-.*\.tar\.gz/$$SIZE kB $(PACKAGE)-$(VERSION).tar.gz/" \
-e "s/Entered-date: .*/Entered-date: $$DATE/" \
$(srcdir)/$(PACKAGE).lsm > $(distdir)/$(PACKAGE).lsm && \
cp $(distdir)/$(PACKAGE).lsm $(srcdir)/$(PACKAGE).lsm
REL_DIR=/home/lav/www-lftp/ftp
release-check:
for opt in "" "--with-modules" "--without-gnutls" "--without-openssl" \
"--without-gnutls --without-openssl" \
"--with-modules --without-gnutls --without-openssl"; \
do \
make DISTCHECK_CONFIGURE_FLAGS="$$opt" distcheck || exit 1; \
done
release:
# cvs commit -m $(VERSION)
# make dist
# cvs commit -m $(VERSION)
make release-check
make release-ftp
release-ftp:
mv $(PACKAGE)-$(VERSION).tar.gz $(REL_DIR)/$(PACKAGE)-$(VERSION).tar.gz
cp -p $(PACKAGE).lsm $(REL_DIR)/$(PACKAGE)-$(VERSION).lsm
cd $(REL_DIR) && \
(addbz $(PACKAGE)-$(VERSION).tar.gz; \
gpg -ba $(PACKAGE)-$(VERSION).tar.gz; \
gpg -ba $(PACKAGE)-$(VERSION).tar.bz2; \
gpg -ba $(PACKAGE)-$(VERSION).tar.xz; \
md5sum $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION).tar.bz2 $(PACKAGE)-$(VERSION).tar.xz > $(PACKAGE)-$(VERSION).md5sum)
mutt -s add [email protected] < $(PACKAGE).lsm
# cvs tag $(PACKAGE)-`echo $(VERSION) | sed 's/\./-/g'` .