git: pwd(1), realpath(1): Split shared source file into separate ones

John Marino marino at crater.dragonflybsd.org
Fri Oct 11 16:30:07 PDT 2013


commit 9f7604d701ff2aea373df3748da45a24ae1eccbc
Author: John Marino <draco at marino.st>
Date:   Fri Oct 11 22:03:46 2013 +0200

    pwd(1), realpath(1): Split shared source file into separate ones
    
    The realpath(1) and pwd(1) programs share the same source file using the
    program name as a condition.  Let's create a dedicated directory for
    realpath, duplicate the source file, then tailor both.  Not only is this
    more logical, it will make maintenance easier in the (near) future.

Summary of changes:
 bin/Makefile                           |  1 +
 bin/pwd/Makefile                       |  4 ----
 bin/pwd/pwd.c                          | 17 +----------------
 bin/realpath/Makefile                  |  5 +++++
 bin/{pwd => realpath}/realpath.1       |  0
 bin/{pwd/pwd.c => realpath/realpath.c} | 17 ++++++-----------
 6 files changed, 13 insertions(+), 31 deletions(-)
 create mode 100644 bin/realpath/Makefile
 rename bin/{pwd => realpath}/realpath.1 (100%)
 copy bin/{pwd/pwd.c => realpath/realpath.c} (91%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9f7604d701ff2aea373df3748da45a24ae1eccbc


-- 
DragonFly BSD source repository


More information about the Commits mailing list