diff options
author | jlam <jlam@pkgsrc.org> | 2003-09-01 22:49:42 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2003-09-01 22:49:42 +0000 |
commit | 68343ad3b2955733b58b6a4e28eabd72cea5e5e2 (patch) | |
tree | 148879e51e85f62e0a7a3a5ffb156841ae0c249d /pkgtools | |
parent | c9bd5d5337ca0b85208b30c56a01879b456520c9 (diff) | |
download | pkgsrc-68343ad3b2955733b58b6a4e28eabd72cea5e5e2.tar.gz |
Document the actions taken by the tree-conversion script.
Diffstat (limited to 'pkgtools')
-rwxr-xr-x | pkgtools/pkg_install/files/src2nbcompat | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgtools/pkg_install/files/src2nbcompat b/pkgtools/pkg_install/files/src2nbcompat index 086fef83309..c43feb13da2 100755 --- a/pkgtools/pkg_install/files/src2nbcompat +++ b/pkgtools/pkg_install/files/src2nbcompat @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: src2nbcompat,v 1.1 2003/09/01 16:27:10 jlam Exp $ +# $NetBSD: src2nbcompat,v 1.2 2003/09/01 22:49:42 jlam Exp $ # # Copyright (c) 2003 The NetBSD Foundation, Inc. # All rights reserved. @@ -75,10 +75,17 @@ for f in $files; do newf=`echo $f | sed 's,^\./,,'` case $newf in *CVS/*) + # Skip copying over any CVS informatin. ;; *Makefile|*Makefile.inc) + # Skip copying over the Makefiles since we'll be using + # a GNU autoconf-based build infrastructure. ;; *.[ch]) + # Add "#include <nbcompat.h>" before the first system + # header inclusion. Protect all system headers with + # "#if HAVE_FOO_H ... #endif" guards. + # awk ' \ BEGIN { seen = 0 } \ /^\#[ ]*include[ ]+<[^ ]*>/ { \ @@ -99,11 +106,13 @@ for f in $files; do ' $newf > $dest/$newf ;; *.[1-9]) + # Copy the manpage over, and generate the catpage. cp $newf $dest/$newf catf=`echo $newf | sed 's,\.\([1-9]\),.cat\1,'` nroff -mandoc $newf > $dest/$catf ;; *) + # Everything else just gets copied verbatim. cp $newf $dest/$newf ;; esac |