pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/same If we provide a mandoc-style manpage, we...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8a1c4db80b08
branches:  trunk
changeset: 535755:8a1c4db80b08
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed Nov 28 07:28:27 2007 +0000

description:
If we provide a mandoc-style manpage, we must also provide it
pre-formatted, for Solaris and some other operating systems that cannot
render it.

diffstat:

 sysutils/same/Makefile        |   8 +-
 sysutils/same/files/same.cat1 |  99 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 103 insertions(+), 4 deletions(-)

diffs (126 lines):

diff -r 92db1a4d460f -r 8a1c4db80b08 sysutils/same/Makefile
--- a/sysutils/same/Makefile    Wed Nov 28 01:38:33 2007 +0000
+++ b/sysutils/same/Makefile    Wed Nov 28 07:28:27 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2006/10/22 14:27:00 rillig Exp $
+# $NetBSD: Makefile,v 1.4 2007/11/28 07:28:27 rillig Exp $
 
 DISTNAME=      same-1.8
 CATEGORIES=    sysutils
@@ -10,10 +10,10 @@
 
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
 
-INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
-MAKE_ENV+=             ${BSD_MAKE_ENV}
+INSTALLATION_DIRS_FROM_PLIST=  yes
+USE_BSD_MAKEFILE=      yes
 
 post-extract:
-       cd ${FILESDIR} && cp -f Makefile same.1 ${WRKSRC}
+       cd ${FILESDIR} && cp -f Makefile same.1 same.cat1 ${WRKSRC}
 
 .include "../../mk/bsd.pkg.mk"
diff -r 92db1a4d460f -r 8a1c4db80b08 sysutils/same/files/same.cat1
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/same/files/same.cat1     Wed Nov 28 07:28:27 2007 +0000
@@ -0,0 +1,99 @@
+SAME(1)                 NetBSD General Commands Manual                 SAME(1)
+
+NNAAMMEE
+     ssaammee -- link identical files to save disk space
+
+SSYYNNOOPPSSIISS
+     ssaammee [--HHVVccddhhnnssttuuvvzz]
+
+DDEESSCCRRIIPPTTIIOONN
+     ssaammee takes a list of files (e.g. the output of find . -type f) on stdin.
+     Each of the files is compared against each of the others.  Whenever two
+     files are found that match exactly, the two files are linked (soft or
+     hard) together.
+
+   GGooaall
+     The goal of this program is to conserve disk space when you have several
+     different trees of large projects on your disk.  By creating hardlinks or
+     softlinks between the files that are the same, you can save lots of disk
+     space.  For example, two different versions of the Linux kernel only dif-
+     fer in a small number of files.  By running this program you only need to
+     store the contents of those files once.  This is especially useful if you
+     have different versions of complete trees lying around.
+
+   IImmpplleemmeennttaattiioonn
+     The filesize of every file is used as an indication of wether two files
+     can be the same. Whenever the filesizes match, the hashes of these two
+     files are compared. Whenever these match, the file contents are compared.
+     For every matching pair one of the two files is replaced by a hard link
+     to the other file.  With the -s option a softlink is used.
+
+     To allow you to do this incrementally, the "rm" is done on the file with
+     the least links. This allows you to "merge" a new tree with several trees
+     that have already been processed. The new tree has link count 1, while
+     the old tree has a higher link count for those files that are likely can-
+     didates for linkage.
+
+     The current implementation keeps the "first" incantation of a file, and
+     replaces further occurrances of the same file. This is significant when
+     using softlinks.
+
+   OOppttiioonnss
+     --HH _n, ----hhaasshhssttaarrtt _n
+             Start at hash value _n instead of 0.
+
+     --VV, ----vveerrssiioonn
+             Print the version of the program and exit.
+
+     --cc _f_i_l_e, ----ccaacchhee _f_i_l_e
+             Keep a cache between runs in file _f_i_l_e.
+
+     --dd, ----ddeebbuugg
+             Output some debug messages.
+
+     --hh, ----hheellpp
+             Output this page and exit successfully.
+
+     --nn, ----ddrryyrruunn
+             Only simulate.
+
+     --ss, ----ssooffttlliinnkkss
+             Create soft links instead of hard links.
+
+     --uu, ----uusseerr
+             Don't relink files owned by another user.
+
+     --vv, ----vveerrbboossee
+             Output verbose messages.
+
+     --zz, ----nnuullllffiilleess
+             Link empty files, too.  By default, only non-empty files are
+             linked.
+
+EEXXIITT SSTTAATTUUSS
+     Zero on success, non-zero on failure.
+
+EEXXAAMMPPLLEESS
+     find . -type f -print | same
+
+SSEEEE AALLSSOO
+     find(1)
+
+AAUUTTHHOORRSS
+     Roger E. Wolff <R.E.Wolff%BitWizard.nl@localhost>,
+     Geert Uytterhoeven <geert%linux-m68k.org@localhost>,
+     Roland Illig <roland.illig%gmx.de@localhost>.
+
+CCAAVVEEAATTSS
+     ··   If your editor does not move the original aside before writing a new
+         copy, you will change the file in ALL incarnations when editing a
+         file.  Patch works just fine: it moves the original aside before cre-
+         ating a new copy.  I'm confident that I could learn Emacs to do it
+         this way too.  I'm too lazy to figure it out, so if you happen to
+         know an easy way how to do this, please Email me at
+         <R.E.Wolff%BitWizard.nl@localhost>.
+
+     ··   There is a 1024 (BUFSIZE) character limit to pathnames when using
+         symlinks.
+
+NetBSD 4.0                       July 14, 2004                      NetBSD 4.0



Home | Main Index | Thread Index | Old Index