$Revision: 1.1 $ -[Wed Jan 22 14:38:56 2003 by layer]- The `convert_links.cl' script converts all the symbolic links in a given directory from absolute to relative. Relative links can be more convenient, since them and the files they point to can be more easily moved, without having to recreate the symbolic links to moved files. For example, consider this setup: crikey% ls -Ral .: total 32 drwxr-xr-x 4 layer fi 4096 Jan 22 14:22 ./ drwxr-xr-x 5 layer fi 4096 Dec 9 09:52 ../ drwxr-xr-x 2 layer fi 4096 Dec 9 09:43 bar/ drwxr-xr-x 2 layer fi 4096 Nov 11 16:10 foo/ ./bar: total 8 drwxr-xr-x 2 layer fi 4096 Dec 9 09:43 ./ drwxr-xr-x 4 layer fi 4096 Jan 22 14:22 ../ lrwxrwxrwx 1 layer fi 53 Dec 9 09:43 foo -> /net/crikey/home/layer/examples/convert_links/foo/foo ./foo: total 12 drwxr-xr-x 2 layer fi 4096 Nov 11 16:10 ./ drwxr-xr-x 4 layer fi 4096 Jan 22 14:22 ../ -rw-r--r-- 1 layer fi 4 Nov 11 16:10 foo crikey% Now, run convert_links.cl: crikey% ./convert_links.cl . bar/foo => ../foo/foo crikey% ls -l bar total 0 lrwxrwxrwx 1 layer fi 10 Jan 22 14:36 foo -> ../foo/foo crikey% bar/foo now points to ../foo/foo instead of /net/crikey/home/layer/examples/convert_links/foo/foo. The directory /home/layer/examples/convert_links can be moved without breaking the symbolic link in `bar'.