From cb362b531d79708a259bbf070dee5104fd63df08 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sun, 17 Sep 2017 00:03:11 -0700 Subject: man-pages-posix: Just check in list of man pages --- pkg/man-pages-posix/gen.rc | 7 +- pkg/man-pages-posix/manpages.rc | 47 -- pkg/man-pages-posix/manpages.txt | 1140 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 1142 insertions(+), 52 deletions(-) delete mode 100644 pkg/man-pages-posix/manpages.rc create mode 100644 pkg/man-pages-posix/manpages.txt diff --git a/pkg/man-pages-posix/gen.rc b/pkg/man-pages-posix/gen.rc index 22a16525..35902e06 100644 --- a/pkg/man-pages-posix/gen.rc +++ b/pkg/man-pages-posix/gen.rc @@ -1,7 +1,4 @@ -rule manpages 'rc ./$dir/manpages.rc $repo $out $srcdir $outdir' ; with\ - deps gcc\ - depfile '$out.d' -build '$outdir'/manpages.index manpages '|' '$dir'/manpages.rc config.rc '||' '$outdir'/fetch.stamp -index_inputs=($index_inputs '$outdir'/manpages.index) +manpages=`{grep -v '^#' manpages.txt} ; checkstatus +man $manpages fetch curl diff --git a/pkg/man-pages-posix/manpages.rc b/pkg/man-pages-posix/manpages.rc deleted file mode 100644 index 18faf96d..00000000 --- a/pkg/man-pages-posix/manpages.rc +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/rc - -. ./config.rc - -flag e + - -ifs=' -' -~ $#* 4 -repo=$1 -out=$2 -dir=$3 -outdir=$4 - -fn checkstatus {} - -wd=`{pwd} -checkstatus - -cd $dir -pages=man?p/* -pages=() -for(d in man?p) { - mkdir -p $wd/$outdir/$d - for(f in $d/*) if(fs man-pages-posix share/man/$f.gz) { - gzip -c -9 -n < $f > $wd/$outdir/$f.gz - pages=($pages $f) - } -} -cd $wd - -if(~ $#pages 0) { - >$out - >$out.d - exit -} - -hashes=`{git -C $repo hash-object -w --no-filters -- $wd/$outdir/$pages.gz} -checkstatus -rm $outdir/$pages.gz - -~ $#pages $#hashes -printf '100644 %s\n' $hashes' share/man/'$pages.gz >$out.tmp -mv $out.tmp $out - -echo $out: $dir/$pages >$out.d.tmp -mv $out.d.tmp $out.d diff --git a/pkg/man-pages-posix/manpages.txt b/pkg/man-pages-posix/manpages.txt new file mode 100644 index 00000000..783ec810 --- /dev/null +++ b/pkg/man-pages-posix/manpages.txt @@ -0,0 +1,1140 @@ +# 2,