[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Added function - contract-path
From: |
lahavav |
Subject: |
Added function - contract-path |
Date: |
Wed, 29 Jun 2005 20:45:23 +0300 |
User-agent: |
Internet Messaging Program (IMP) 3.2.8 |
Hi all,
I've added a function (A make function) named contract-path to the 3.80 sources.
It takes a path with garbage like 'dir/..' or 'dir1//2/' or 'dir/./dir2' and
contracts it as much as possible, e.g.:
a/b/.. ==> a
a/./. ==> a
a\b\\c/d ==> a/b/c/d
I found it very useful when I see up-and-down paths used in my makefiles.
Please let me know if anybody else is interested in it, and if desired I'll
commit it to the repository.
Bye,
- Aviad Lahav
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
- Added function - contract-path,
lahavav <=