build: Add a README.cpan to be installed as README in the CPAN distribution

This is a requirement for the CPAN distributions.
This commit is contained in:
Guillem Jover
2020-11-02 10:06:47 +01:00
parent cdb7949e66
commit e56a8172e3
4 changed files with 8 additions and 0 deletions

View File

@ -226,6 +226,7 @@ AC_CONFIG_FILES([
po/Makefile.in
scripts/Build.PL
scripts/Makefile
scripts/README.cpan
scripts/mk/Makefile
scripts/po/Makefile.in
src/Makefile

View File

@ -21,6 +21,7 @@ dist-cpan:
cp -fpR $(top_srcdir)/scripts/Dpkg.pm $(CPAN_DIST)/lib/
cp -fpR $(top_srcdir)/scripts/Dpkg $(CPAN_DIST)/lib/
cp -fpR $(top_srcdir)/scripts/Test $(CPAN_DIST)/lib/
cp -fpR $(top_builddir)/scripts/README.cpan $(CPAN_DIST)/README
cp -fpR $(top_builddir)/scripts/Build.PL $(CPAN_DIST)
: # Fix permissions of the distributed files.

1
scripts/.gitignore vendored
View File

@ -1,4 +1,5 @@
Build.PL
README.cpan
dpkg-architecture
dpkg-buildflags
dpkg-buildpackage

5
scripts/README.cpan.in Normal file
View File

@ -0,0 +1,5 @@
This archive contains the CPAN distribution for @PACKAGE_CPAN_NAME@, which
is part of the @PACKAGE@ project.
Only the perl modules are included. The rest of the content can be found in
the original upstream source code, from <@PACKAGE_URL@>.