diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..aa29b82 --- /dev/null +++ b/Readme.md @@ -0,0 +1,66 @@ +symlinks +======== +**scan/change symbolic links** + +Symlinks is a simple tool that helps find and remedy problematic symbolic links on a system. + + +Description +----------- + +Symlinks scans directories for symbolic links, identifying dangling, relative, absolute, messy, and other_fs links. It can also change absolute links to relative within a given filesystem. + + +Installation +------------ + +### Source: + + $ ./configure + $ make + $ make install + + +Usage +----- + +### Scan: + + $ symlinks -r [path] + + +### Show all symlinks: + + $ symlinks -rv [path] + + +### Convert absolute symlinks to a relative: + + $ symlinks -rc [path] + + +### More options: + + $ symlinks -h + + +Changes +------- + +* v1.4-1 +Added Mac OS X compatibility. + +* v1.4 +Incorporate patches from Fedora. + +* v1.3 +More messy-link fixes, new -o flag for other_fs. + +* v1.2 +Added -s flag to shorten links with redundant path elements. Also includes code to remove excess slashes from paths. + + +Credit +------ + +Symlinks was originally created by Mark Lord (mlord@pobox.com). \ No newline at end of file diff --git a/symlinks.8 b/symlinks.8 index de293ab..77fb71b 100644 --- a/symlinks.8 +++ b/symlinks.8 @@ -1,4 +1,4 @@ -.TH SYMLINKS 8 "October 2008" "Version 1.4" +.TH SYMLINKS 8 "July 2012" "Version 1.4-1" .SH NAME symlinks \- symbolic link maintenance utility diff --git a/symlinks.c b/symlinks.c index 7224365..1f47b1d 100644 --- a/symlinks.c +++ b/symlinks.c @@ -25,7 +25,7 @@ #define PATH_MAX 1024 #endif -#define progver "%s: scan/change symbolic links - v1.3 - by Mark Lord\n\n" +#define progver "%s: scan/change symbolic links - v1.4-1 - by Mark Lord\n\n" static char *progname; static int verbose = 0, fix_links = 0, recurse = 0, delete = 0, shorten = 0, testing = 0, single_fs = 1; diff --git a/symlinks.lsm b/symlinks.lsm deleted file mode 100644 index 796c856..0000000 --- a/symlinks.lsm +++ /dev/null @@ -1,36 +0,0 @@ -Begin2 -Title =symlinks - scan/change symbolic links -Version =1.4 -Desc1 =Scans directories for symbolic links, and identifies dangling, -Desc2 =relative, absolute, messy, and other_fs links. Can optionally -Desc3 =change absolute links to relative within a given filesystem. -Desc4 =Recommended for use by anyone developing and/or maintaining -Desc5 =a Linux FTP site or distribution or CD-ROM. -Author =Mark Lord -AuthorEmail =mlord@pobox.com -Maintainer =Mark Lord -MaintEmail =mlord@pobox.com -Site1 =tsx-11.mit.edu -Path1 =/pub/linux/sources/usr.bin -File1 =symlinks-1.4.tar.gz -FileSize1 =5KB -Required1 = -Required2 = -Required3 = -Required4 = -CopyPolicy1 =(c) Mark Lord, freely distributable -CopyPolicy2 = -Keywords =symbolic links cd cdrom CD-ROM distribution -Comment1 =v1.4 incorporate patches from Fedora -Comment1 =v1.3 more messy-link fixes, new -o flag for other_fs -Comment2 =v1.2 added -s flag to shorten links with redundant -Comment3 =path elements. Also includes code to remove excess -Comment4 =slashes from paths. -RelFiles1 = -RelFiles2 = -RelFiles3 = -Entered =09OCT2009 -EnteredBy =Mark Lord -CheckedEmail =mlord@pobox.com -End -