From 77ea441f79aa115f79b47d9c1fc9c0004c5c7111 Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Tue, 27 Dec 2011 00:30:23 +0000 Subject: realpath: a new program to print the resolved path This program is compatible with other realpath(1) implementations, and also incorporates relpath like support, through the --relative options. The relpath support was suggested by Peng Yu, who also provided an initial implemenation of that functionality. * AUTHORS: Add my name. * NEWS: Mention the new command. * README: Likewise. * doc/coreutils.texi (realpath invocation): Add realpath info. * man/Makefile.am (realpath.1): Add dependency. * man/realpath.x: New template. * man/.gitignore: Ignore generated man page. * po/POTFILES.in: Add src/realpath.c. * src/.gitignore: Exclude realpath. * src/Makefile.am (EXTRA_PROGRAMS): Add realpath. * src/realpath.c: New file. * scripts/git-hooks/commit-msg: Add realpath to the list of prefixes. * tests/Makefile.am (TESTS): Add misc/realpath. * tests/misc/realpath: New file. --- man/.gitignore | 1 + man/Makefile.am | 1 + man/realpath.x | 6 ++++++ 3 files changed, 8 insertions(+) create mode 100644 man/realpath.x (limited to 'man') diff --git a/man/.gitignore b/man/.gitignore index 2c2ffcdef..9ae1183ed 100644 --- a/man/.gitignore +++ b/man/.gitignore @@ -59,6 +59,7 @@ printf.1 ptx.1 pwd.1 readlink.1 +realpath.1 rm.1 rmdir.1 seq.1 diff --git a/man/Makefile.am b/man/Makefile.am index a8888996b..48a52d226 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -92,6 +92,7 @@ printf.1: $(common_dep) $(srcdir)/printf.x ../src/printf.c ptx.1: $(common_dep) $(srcdir)/ptx.x ../src/ptx.c pwd.1: $(common_dep) $(srcdir)/pwd.x ../src/pwd.c readlink.1: $(common_dep) $(srcdir)/readlink.x ../src/readlink.c +realpath.1: $(common_dep) $(srcdir)/realpath.x ../src/realpath.c rm.1: $(common_dep) $(srcdir)/rm.x ../src/rm.c rmdir.1: $(common_dep) $(srcdir)/rmdir.x ../src/rmdir.c runcon.1: $(common_dep) $(srcdir)/runcon.x ../src/runcon.c diff --git a/man/realpath.x b/man/realpath.x new file mode 100644 index 000000000..a52fa2570 --- /dev/null +++ b/man/realpath.x @@ -0,0 +1,6 @@ +[NAME] +realpath \- print the resolved path +[DESCRIPTION] +.\" Add any additional description here +[SEE ALSO] +readlink(1), readlink(2), realpath(3) -- cgit v1.2.3-70-g09d2