Changeset View
Changeset View
Standalone View
Standalone View
lang/python-doc-html/files/gen-makesum.sh
- This file was added.
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:executable | null | * \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
#!/bin/sh | |||||
# $FreeBSD$ | |||||
# | |||||
# Output a minimal makefile with DISTFILES set to all supported | |||||
# Python versions vs. all doc formats | |||||
# | |||||
DOCFORMATS="html pdf-a4 pdf-letter text" | |||||
_PYTHON_VERSIONS=`make -V _PYTHON_VERSIONS` | |||||
DISTFILES="" | |||||
for ver in ${_PYTHON_VERSIONS}; do | |||||
ver2=`make -V PYTHON_PORTVERSION DEFAULT_VERSIONS=python=${ver}` | |||||
for format in ${DOCFORMATS}; do | |||||
files=`make -V DISTFILES \ | |||||
PORTVERSION=${ver2} DOCFORMAT=${format}` | |||||
DISTFILES="${DISTFILES} ${files}" | |||||
done | |||||
done | |||||
# | |||||
# Output the makefile | |||||
# | |||||
echo -n MASTER_SITES= | |||||
make -V MASTER_SITES | |||||
echo DISTFILES=${DISTFILES} | |||||
echo -n DIST_SUBDIR= | |||||
make -V DIST_SUBDIR | |||||
echo "all: makesum" | |||||
echo ".include <bsd.port.mk>" |