Line 0
Link Here
|
|
|
1 |
#!/bin/sh |
2 |
# $FreeBSD$ |
3 |
# |
4 |
# Output a minimal makefile with DISTFILES set to all supported |
5 |
# Python versions vs. all doc formats |
6 |
# |
7 |
|
8 |
DOCFORMATS="html pdf-a4 pdf-letter text" |
9 |
_PYTHON_VERSIONS=`make -V _PYTHON_VERSIONS` |
10 |
|
11 |
DISTFILES="" |
12 |
for ver in ${_PYTHON_VERSIONS}; do |
13 |
ver2=`make -V PYTHON_PORTVERSION DEFAULT_VERSIONS=python=${ver}` |
14 |
for format in ${DOCFORMATS}; do |
15 |
files=`make -V DISTFILES \ |
16 |
PORTVERSION=${ver2} DOCFORMAT=${format}` |
17 |
DISTFILES="${DISTFILES} ${files}" |
18 |
done |
19 |
done |
20 |
|
21 |
# |
22 |
# Output the minimal makefile |
23 |
# |
24 |
echo -n MASTER_SITES= |
25 |
make -V MASTER_SITES |
26 |
|
27 |
echo DISTFILES=${DISTFILES} |
28 |
|
29 |
echo -n DIST_SUBDIR= |
30 |
make -V DIST_SUBDIR |
31 |
|
32 |
echo ".include <bsd.port.mk>" |