|
Packit Service |
aec53c |
## Process this file with automake to produce Makefile.in
|
|
Packit Service |
aec53c |
# Copyright (C) 1992, 1999, 2000, 2002 Free Software Foundation, Inc.
|
|
Packit Service |
aec53c |
#
|
|
Packit Service |
aec53c |
# This file is part of Libgcrypt.
|
|
Packit Service |
aec53c |
#
|
|
Packit Service |
aec53c |
# Libgcrypt is free software; you can redistribute it and/or modify
|
|
Packit Service |
aec53c |
# it under the terms of the GNU Lesser General Public License as
|
|
Packit Service |
aec53c |
# published by the Free Software Foundation; either version 2.1 of
|
|
Packit Service |
aec53c |
# the License, or (at your option) any later version.
|
|
Packit Service |
aec53c |
#
|
|
Packit Service |
aec53c |
# Libgcrypt is distributed in the hope that it will be useful,
|
|
Packit Service |
aec53c |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
aec53c |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit Service |
aec53c |
# GNU Lesser General Public License for more details.
|
|
Packit Service |
aec53c |
#
|
|
Packit Service |
aec53c |
# You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
aec53c |
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
Packit Service |
aec53c |
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
Packit Service |
aec53c |
|
|
Packit Service |
aec53c |
# Location of the released tarball archives. Note that this is an
|
|
Packit Service |
aec53c |
# internal archive and before uploading this to the public server,
|
|
Packit Service |
aec53c |
# manual tests should be run and the git release tagged and pushed.
|
|
Packit Service |
aec53c |
# Adjust as needed.
|
|
Packit Service |
aec53c |
RELEASE_ARCHIVE_DIR = wk@vigenere:tarballs/libgcrypt/v1.8/
|
|
Packit Service |
aec53c |
# The key used to sign the released sources. Adjust as needed.
|
|
Packit Service |
aec53c |
RELEASE_SIGNING_KEY = D8692123C4065DEA5E0F3AB5249B39D24F25E3B6
|
|
Packit Service |
aec53c |
|
|
Packit Service |
aec53c |
|
|
Packit Service |
aec53c |
ACLOCAL_AMFLAGS = -I m4
|
|
Packit Service |
aec53c |
DISTCHECK_CONFIGURE_FLAGS = --disable-random-daemon --enable-doc \
|
|
Packit Service |
aec53c |
--enable-random=auto
|
|
Packit Service |
aec53c |
|
|
Packit Service |
aec53c |
# (A suitable gitlog-to-changelog script can be found in GnuPG master.)
|
|
Packit Service |
aec53c |
GITLOG_TO_CHANGELOG=gitlog-to-changelog
|
|
Packit Service |
aec53c |
|
|
Packit Service |
aec53c |
if BUILD_DOC
|
|
Packit Service |
aec53c |
doc = doc
|
|
Packit Service |
aec53c |
else
|
|
Packit Service |
aec53c |
doc =
|
|
Packit Service |
aec53c |
endif
|
|
Packit Service |
aec53c |
|
|
Packit Service |
aec53c |
|
|
Packit Service |
aec53c |
DIST_SUBDIRS = m4 compat mpi cipher random src doc tests
|
|
Packit Service |
aec53c |
SUBDIRS = compat mpi cipher random src $(doc) tests
|
|
Packit Service |
aec53c |
|
|
Packit Service |
aec53c |
EXTRA_DIST = autogen.sh autogen.rc README.GIT LICENSES \
|
|
Packit Service |
aec53c |
ChangeLog-2011 build-aux/ChangeLog-2011 doc/ChangeLog-2011 \
|
|
Packit Service |
aec53c |
m4/ChangeLog-2011 cipher/ChangeLog-2011 src/ChangeLog-2011 \
|
|
Packit Service |
aec53c |
random/ChangeLog-2011 tests/ChangeLog-2011 mpi/ChangeLog-2011 \
|
|
Packit Service |
aec53c |
build-aux/git-log-footer build-aux/git-log-fix
|
|
Packit Service |
aec53c |
|
|
Packit Service |
aec53c |
DISTCLEANFILES =
|
|
Packit Service |
aec53c |
|
|
Packit Service |
aec53c |
|
|
Packit Service |
aec53c |
# Add all the files listed in "distfiles" files to the distribution,
|
|
Packit Service |
aec53c |
# apply version number s to some files and create a VERSION file which
|
|
Packit Service |
aec53c |
# we need for the Prereq: patch file trick.
|
|
Packit Service |
aec53c |
dist-hook: gen-ChangeLog
|
|
Packit Service |
aec53c |
@set -e; \
|
|
Packit Service |
aec53c |
for file in `cd $(top_srcdir); \
|
|
Packit Service |
aec53c |
find mpi -type f -name distfiles`; do \
|
|
Packit Service |
aec53c |
dir=`dirname $$file` ; $(mkinstalldirs) $(distdir)/$$dir ; \
|
|
Packit Service |
aec53c |
for i in distfiles `cat $(top_srcdir)/$$file` ; do \
|
|
Packit Service |
aec53c |
ln $(top_srcdir)/$$dir/$$i $(distdir)/$$dir/$$i 2> /dev/null \
|
|
Packit Service |
aec53c |
|| cp -p $(top_srcdir)/$$dir/$$i $(distdir)/$$dir/$$i; \
|
|
Packit Service |
aec53c |
done ; \
|
|
Packit Service |
aec53c |
done
|
|
Packit Service |
aec53c |
@set -e; \
|
|
Packit Service |
aec53c |
echo "$(VERSION)" > $(distdir)/VERSION
|
|
Packit Service |
aec53c |
|
|
Packit Service |
aec53c |
distcheck-hook:
|
|
Packit Service |
aec53c |
set -e; ( \
|
|
Packit Service |
aec53c |
pref="#+macro: $$(echo $(PACKAGE_NAME)|tr '-' '_')_" ;\
|
|
Packit Service |
aec53c |
reldate="$$(date -u +%Y-%m-%d)" ;\
|
|
Packit Service |
aec53c |
echo "$${pref}ver $(PACKAGE_VERSION)" ;\
|
|
Packit Service |
aec53c |
echo "$${pref}date $${reldate}" ;\
|
|
Packit Service |
aec53c |
list='$(DIST_ARCHIVES)'; for i in $$list; do \
|
|
Packit Service |
aec53c |
case "$$i" in *.tar.bz2) \
|
|
Packit Service |
aec53c |
echo "$${pref}size $$(wc -c <$$i|awk '{print int($$1/1024)}')k" ;\
|
|
Packit Service |
aec53c |
echo "$${pref}sha1 $$(sha1sum <$$i|cut -d' ' -f1)" ;\
|
|
Packit Service |
aec53c |
echo "$${pref}sha2 $$(sha256sum <$$i|cut -d' ' -f1)" ;;\
|
|
Packit Service |
aec53c |
esac;\
|
|
Packit Service |
aec53c |
done ) | tee $(distdir).swdb
|
|
Packit Service |
aec53c |
|
|
Packit Service |
aec53c |
|
|
Packit Service |
aec53c |
|
|
Packit Service |
aec53c |
gen_start_date = 2011-12-01T14:00:00
|
|
Packit Service |
aec53c |
.PHONY: gen-ChangeLog
|
|
Packit Service |
aec53c |
gen-ChangeLog:
|
|
Packit Service |
aec53c |
if test -e $(top_srcdir)/.git; then \
|
|
Packit Service |
aec53c |
(cd $(top_srcdir) && \
|
|
Packit Service |
aec53c |
$(GITLOG_TO_CHANGELOG) --append-dot --tear-off \
|
|
Packit Service |
aec53c |
--amend=build-aux/git-log-fix \
|
|
Packit Service |
aec53c |
--since=$(gen_start_date) ) > $(distdir)/cl-t; \
|
|
Packit Service |
aec53c |
cat $(top_srcdir)/build-aux/git-log-footer >> $(distdir)/cl-t;\
|
|
Packit Service |
aec53c |
rm -f $(distdir)/ChangeLog; \
|
|
Packit Service |
aec53c |
mv $(distdir)/cl-t $(distdir)/ChangeLog; \
|
|
Packit Service |
aec53c |
fi
|
|
Packit Service |
aec53c |
|
|
Packit Service |
aec53c |
|
|
Packit Service |
aec53c |
|
|
Packit Service |
aec53c |
stowinstall:
|
|
Packit Service |
aec53c |
$(MAKE) $(AM_MAKEFLAGS) install prefix=/usr/local/stow/libgcrypt
|
|
Packit Service |
aec53c |
|
|
Packit Service |
aec53c |
# Macro to help the release target.
|
|
Packit Service |
aec53c |
RELEASE_NAME = $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
|
|
Packit Service |
aec53c |
|
|
Packit Service |
aec53c |
release:
|
|
Packit Service |
aec53c |
+(set -e;\
|
|
Packit Service |
aec53c |
if [ "$(abs_top_builddir)" = "$(abs_top_srcdir)" ]; then \
|
|
Packit Service |
aec53c |
echo "error: build directory must not be the source directory" >&2;\
|
|
Packit Service |
aec53c |
exit 2;\
|
|
Packit Service |
aec53c |
fi ;\
|
|
Packit Service |
aec53c |
echo "/* Build started at $$(date -uIseconds) */" ;\
|
|
Packit Service |
aec53c |
cd $(top_srcdir); \
|
|
Packit Service |
aec53c |
./autogen.sh --force; \
|
|
Packit Service |
aec53c |
cd $(abs_top_builddir); \
|
|
Packit Service |
aec53c |
rm -rf dist; mkdir dist ; cd dist ; \
|
|
Packit Service |
aec53c |
$(abs_top_srcdir)/configure --enable-maintainer-mode; \
|
|
Packit Service |
aec53c |
$(MAKE) distcheck; \
|
|
Packit Service |
aec53c |
echo "/* Build finished at $$(date -uIseconds) */" ;\
|
|
Packit Service |
aec53c |
echo "/*" ;\
|
|
Packit Service |
aec53c |
echo " * Please run the final step interactivly:" ;\
|
|
Packit Service |
aec53c |
echo " * make sign-release" ;\
|
|
Packit Service |
aec53c |
echo " */" ;\
|
|
Packit Service |
aec53c |
) 2>&1 | tee "$(RELEASE_NAME).buildlog"
|
|
Packit Service |
aec53c |
|
|
Packit Service |
aec53c |
sign-release:
|
|
Packit Service |
aec53c |
+(set -e; \
|
|
Packit Service |
aec53c |
cd dist; \
|
|
Packit Service |
aec53c |
files1="$(RELEASE_NAME).tar.bz2 \
|
|
Packit Service |
aec53c |
$(RELEASE_NAME).tar.gz" ; \
|
|
Packit Service |
aec53c |
files2="$(RELEASE_NAME).tar.bz2.sig \
|
|
Packit Service |
aec53c |
$(RELEASE_NAME).tar.gz.sig \
|
|
Packit Service |
aec53c |
$(RELEASE_NAME).swdb \
|
|
Packit Service |
aec53c |
$(RELEASE_NAME).buildlog" ;\
|
|
Packit Service |
aec53c |
echo "/* Signing the source tarball ..." ;\
|
|
Packit Service |
aec53c |
gpg -sbu $(RELEASE_SIGNING_KEY) $(RELEASE_NAME).tar.bz2 ;\
|
|
Packit Service |
aec53c |
gpg -sbu $(RELEASE_SIGNING_KEY) $(RELEASE_NAME).tar.gz ;\
|
|
Packit Service |
aec53c |
cat $(RELEASE_NAME).swdb >swdb.snippet;\
|
|
Packit Service |
aec53c |
echo >>swdb.snippet ;\
|
|
Packit Service |
aec53c |
sha1sum $${files1} >>swdb.snippet ;\
|
|
Packit Service |
aec53c |
cat "../$(RELEASE_NAME).buildlog" swdb.snippet \
|
|
Packit Service |
aec53c |
| gzip >$(RELEASE_NAME).buildlog ;\
|
|
Packit Service |
aec53c |
echo "Copying to local archive ..." ;\
|
|
Packit Service |
aec53c |
scp -p $${files1} $${files2} $(RELEASE_ARCHIVE_DIR)/ || true;\
|
|
Packit Service |
aec53c |
echo '/*' ;\
|
|
Packit Service |
aec53c |
echo ' * All done; for checksums see dist/swdb.snippet' ;\
|
|
Packit Service |
aec53c |
echo ' */' ;\
|
|
Packit Service |
aec53c |
)
|