compress infopages
Fix manpage formatting to use a simpler commandline
This commit is contained in:
parent
e7bd263f8c
commit
c050cce4ec
@ -59,15 +59,13 @@ BASENAME=/bin/basename
|
|||||||
DIRNAME=/bin/dirname
|
DIRNAME=/bin/dirname
|
||||||
TR=/bin/tr
|
TR=/bin/tr
|
||||||
FILE=/usr/bin/file # Used by do_strip()
|
FILE=/usr/bin/file # Used by do_strip()
|
||||||
PRINTF="/usr/bin/printf"
|
PRINTF=/usr/bin/printf
|
||||||
LN=/usr/bin/ln
|
LN=/usr/bin/ln
|
||||||
|
GINSTALL=/usr/local/bin/install # BSD compatible install - usually GNU install
|
||||||
|
|
||||||
# Groff stuff for manpages
|
# Groff stuff for manpages
|
||||||
NEQN=/usr/local/bin/neqn
|
|
||||||
NEQNOPTS="-Tlatin1"
|
|
||||||
TBL=/usr/local/bin/tbl
|
|
||||||
NROFF=/usr/local/bin/nroff
|
NROFF=/usr/local/bin/nroff
|
||||||
NROFFOPTS="-c -man"
|
NROFFOPTS="-c -mandoc -Tlatin1 -t"
|
||||||
|
|
||||||
# Define defaults
|
# Define defaults
|
||||||
pkgdir=${PWD##*/} # topdir under $BUILDPKG_BASE
|
pkgdir=${PWD##*/} # topdir under $BUILDPKG_BASE
|
||||||
@ -116,6 +114,7 @@ pkgdirdesig=${topinstalldir##/*/} # topinstalldir suffix
|
|||||||
# Functionality controls
|
# Functionality controls
|
||||||
catman=0 # Don't fix manpages pr. default
|
catman=0 # Don't fix manpages pr. default
|
||||||
gzman=0 # Don't compress man pages pr. default
|
gzman=0 # Don't compress man pages pr. default
|
||||||
|
gzinfo=1 # Compress infopages pr. default
|
||||||
dostrip=1
|
dostrip=1
|
||||||
dostrip_elf=1 # default to stripping binaries during the install stage
|
dostrip_elf=1 # default to stripping binaries during the install stage
|
||||||
dostrip_shared=1 # default to stripping shared objects during the install stage
|
dostrip_shared=1 # default to stripping shared objects during the install stage
|
||||||
@ -374,7 +373,7 @@ fix_man()
|
|||||||
$MV "$manpage" "../$catdir"
|
$MV "$manpage" "../$catdir"
|
||||||
$RM -f "$manpage"
|
$RM -f "$manpage"
|
||||||
else
|
else
|
||||||
$NEQN $NEQNOPTS "$manpage" | $TBL | $NROFF $NROFFOPTS > "../$catdir/$manpage"
|
$NROFF $NROFFOPTS "$manpage" > "../$catdir/$manpage"
|
||||||
$RM -f $manpage
|
$RM -f $manpage
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@ -384,9 +383,9 @@ fix_man()
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
# compress_man(): Compress raw manpages
|
# compress_man(): Compress manpages
|
||||||
# params: none
|
# params: none
|
||||||
# Run from 'cwd' where 'cwd' contains manX subdirs
|
# Run from 'cwd' where 'cwd' contains catX/manX subdirs
|
||||||
compress_man()
|
compress_man()
|
||||||
{
|
{
|
||||||
echo "Compressing manpages"
|
echo "Compressing manpages"
|
||||||
@ -412,6 +411,18 @@ compress_man()
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# compress_info(): Compress GNU info pages
|
||||||
|
# params: none
|
||||||
|
# Run from 'cwd' where 'cwd' is the dir contains uncompressed info pages
|
||||||
|
compress_info()
|
||||||
|
{
|
||||||
|
echo "Compressing info pages"
|
||||||
|
for i in *
|
||||||
|
do
|
||||||
|
${GZIP} $i
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
# doc(): Add files from srcdir to 'docs' location
|
# doc(): Add files from srcdir to 'docs' location
|
||||||
# params: $1..$x
|
# params: $1..$x
|
||||||
# Copies files from $srcdir to $_docdir/$topdir-$version
|
# Copies files from $srcdir to $_docdir/$topdir-$version
|
||||||
|
Loading…
x
Reference in New Issue
Block a user