2004-01-11 12:35:48 +00:00
|
|
|
SUBDIRS = src
|
2017-10-01 08:44:09 +00:00
|
|
|
bin_SCRIPTS = mbsync-get-cert
|
2004-03-27 16:07:20 +00:00
|
|
|
EXTRA_DIST = debian isync.spec $(bin_SCRIPTS)
|
2000-12-20 22:28:05 +00:00
|
|
|
|
2010-02-07 11:23:56 +00:00
|
|
|
LOG_PL = \
|
|
|
|
use POSIX qw(strftime); \
|
|
|
|
use Date::Parse; \
|
|
|
|
use Text::Wrap; \
|
|
|
|
$$Text::Wrap::columns = 72; \
|
|
|
|
while (defined($$_ = <>)) { \
|
|
|
|
/^commit / or die "commit missing: $$_"; \
|
|
|
|
<> =~ /^log size (\d+)$$/ or die "wrong size"; \
|
|
|
|
$$len = $$1; \
|
|
|
|
read(STDIN, $$log, $$len) == $$len or die "unexpected EOF"; \
|
|
|
|
$$log =~ s/^Author: ([^>]+>)\nDate: (\d{4}-\d\d-\d\d \d\d:\d\d:\d\d [-+]\d{4})\n(.*)$$/$$3/s or die "unexpected log format"; \
|
|
|
|
$$author = $$1; $$date = str2time($$2); \
|
|
|
|
scalar(<>); \
|
|
|
|
@files = (); \
|
|
|
|
$$pfx = ""; \
|
|
|
|
while (defined($$l = <>) and $$l ne "\n") { \
|
|
|
|
chomp $$l; \
|
|
|
|
next if ($$l =~ m,^(ChangeLog$$|NEWS$$|TODO$$|debian/),); \
|
|
|
|
if (!@files) { \
|
|
|
|
$$pfx = $$l; \
|
|
|
|
$$pfx =~ s,/?[^/]+$$,,; \
|
|
|
|
} else { \
|
|
|
|
while (length($$pfx)) { \
|
|
|
|
$$l =~ m,^\Q$$pfx/\E, and last; \
|
|
|
|
$$pfx =~ s,/?[^/]+$$,,; \
|
|
|
|
} \
|
|
|
|
} \
|
|
|
|
push @files, $$l; \
|
|
|
|
} \
|
|
|
|
next if (!@files); \
|
|
|
|
print strftime("%F %H:%M", gmtime($$date))." ".$$author."\n\n"; \
|
|
|
|
if (@files > 1 and ($$len = length($$pfx))) { \
|
|
|
|
@efiles = (); \
|
|
|
|
for $$f (@files) { push @efiles, substr($$f, $$len + 1); } \
|
|
|
|
$$fstr = $$pfx."/: "; \
|
|
|
|
} else { \
|
|
|
|
@efiles = @files; \
|
|
|
|
$$fstr = ""; \
|
|
|
|
} \
|
|
|
|
print wrap("\t* ", "\t ", $$fstr.join(", ", @efiles).":")."\n"; \
|
|
|
|
$$log =~ s, +$$,,gm; \
|
|
|
|
$$log =~ s,^ ,\t,gm; \
|
|
|
|
print $$log."\n"; \
|
|
|
|
}
|
|
|
|
|
|
|
|
$(srcdir)/ChangeLog: log
|
2000-12-20 22:28:05 +00:00
|
|
|
log:
|
2010-02-07 11:23:56 +00:00
|
|
|
@test -z "$(srcdir)" || cd $(srcdir) && \
|
|
|
|
( ! test -d .git || \
|
2017-05-14 07:42:36 +00:00
|
|
|
git log --pretty=medium --date=iso --log-size --name-only --no-merges | \
|
2010-02-07 11:23:56 +00:00
|
|
|
perl -e '$(LOG_PL)' > ChangeLog )
|
2000-12-21 20:56:14 +00:00
|
|
|
|
2015-04-03 12:03:07 +00:00
|
|
|
cov-scan: clean
|
|
|
|
/opt/cov-analysis-*/bin/cov-build --dir cov-int $(MAKE)
|
|
|
|
tar cavf isync.tar.xz cov-int
|
|
|
|
|
2017-09-23 10:52:10 +00:00
|
|
|
deb:
|
|
|
|
CFLAGS= INSTALL= dpkg-buildpackage -b --no-sign
|
2004-01-11 12:35:48 +00:00
|
|
|
|
2004-03-27 16:07:20 +00:00
|
|
|
dist-hook:
|
2012-08-26 14:16:12 +00:00
|
|
|
find $(distdir)/debian \( -name .#\*# -o -type l \) -print0 | xargs -0r rm -rf
|
|
|
|
-cd $(distdir)/debian && test -f .gitignore && rm -rf `cat .gitignore` .gitignore
|
2004-03-27 16:07:20 +00:00
|
|
|
|
2007-04-04 17:03:45 +00:00
|
|
|
dist-sign: dist
|
|
|
|
gpg -b -a $(PACKAGE)-$(VERSION).tar.gz
|
|
|
|
|
2012-08-26 13:02:38 +00:00
|
|
|
rpm: dist
|
|
|
|
CFLAGS="-O2 -mtune=core2" rpmbuild --clean -ta $(PACKAGE)-$(VERSION).tar.gz
|
|
|
|
|
|
|
|
rpm-ia32: dist
|
|
|
|
CFLAGS="-O2 -m32 -march=i686" rpmbuild --target i686-unknown-linux --clean -ta $(PACKAGE)-$(VERSION).tar.gz
|
2004-09-24 08:45:17 +00:00
|
|
|
|
|
|
|
doc_DATA = README TODO NEWS ChangeLog AUTHORS
|