From 6431e38e4d96c2d3b09b4d4c19ffb67be45bddc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Andr=C3=A9e?= Date: Mon, 27 Aug 2012 01:47:58 +0200 Subject: [PATCH] =?UTF-8?q?symlinking=20as=20standard=20rather=20tham=20ha?= =?UTF-8?q?rdlinking,=20otherwise=20=C2=B1L=20does=20nothing=20special?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manuals/ponysay.texinfo | 5 ++++- setup.py | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/manuals/ponysay.texinfo b/manuals/ponysay.texinfo index 7e04ecf8..2effc8b5 100644 --- a/manuals/ponysay.texinfo +++ b/manuals/ponysay.texinfo @@ -1013,13 +1013,16 @@ Set the system's directory for cache directories. @cindex @option{--dest-dir} Set off environment for installation. -@item --linking=hard +@item --linking=symbolic @cindex @option{--linking} Set how to link identical files. Directories cannot be hard linked on most systems, therefore directories or always symbolically linked of hard linked is specified. Recognised arguments are @code{copy}, @code{hard} and @code{symbolic}. @code{copy} implies that files and directories are not linked, but duplicated. +@command{ponysay ±L} will give the same output as @command{ponysay ±l} if @code{copy} +or @code{hard} is used. This is because it does link reading and not content or +inode comparison. @end table Recognised compressions are @option{gz} which uses @option{gzip -9}, and @option{xz} diff --git a/setup.py b/setup.py index a51d848c..c511e446 100755 --- a/setup.py +++ b/setup.py @@ -126,13 +126,13 @@ class Setup(): opts.add_argumented (help = 'Set off environment for installation\nEmpty by default', alternatives = ['--dest-dir'], arg='DESTDIR') - opts.add_argumented (help = 'Set how to link identical files\nDefault = hard, copy and symbolic are also recognised', alternatives = ['--linking'], arg='TYPE') + opts.add_argumented (help = 'Set how to link identical files\nDefault = symbolic, copy and hard are also recognised', alternatives = ['--linking'], arg='TYPE') opts.parse() - self.linking = HARD + self.linking = SYMBOLIC if opts.opts['--linking'] is not None: self.linking = opts.opts['--linking'][0]