mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-25 05:47:59 +01:00
symlinking as standard rather tham hardlinking, otherwise ±L does nothing special
This commit is contained in:
parent
f0fcdd7903
commit
6431e38e4d
2 changed files with 6 additions and 3 deletions
|
@ -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}
|
||||
|
|
4
setup.py
4
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]
|
||||
|
||||
|
|
Loading…
Reference in a new issue