; ; pathUtil.sh ; ; Messing about with path variables ; ; © 1994-1998 Straylight ; ;----- Licensing note ------------------------------------------------------- ; ; This file is part of Straylight's core utilities (coreutils). ; ; Coreutils is free software; you can redistribute it and/or modify ; it under the terms of the GNU General Public License as published by ; the Free Software Foundation; either version 2, or (at your option) ; any later version. ; ; Coreutils is distributed in the hope that it will be useful, ; but WITHOUT ANY WARRANTY; without even the implied warranty of ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ; GNU General Public License for more details. ; ; You should have received a copy of the GNU General Public License ; along with Coreutils. If not, write to the Free Software Foundation, ; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ;----- Overview ------------------------------------------------------------- ; ; Functions provided: ; ; path_addDir ; path_removeDir [ :LNOT::DEF:pathUtil__dfn GBLL pathUtil__dfn ; --- path_addDir --- ; ; On entry: R0 == pointer to path variable name ; R1 == pointer to a directory string to add in ; ; On exit: CS if path element added, CC otherwise ; May return an error ; ; Use: Adds a directory to the given path variable. IMPORT path_addDir ; --- path_removeDir --- ; ; On entry: R0 == pointer to name of path variable ; R1 == pointer to a directory to remove ; ; On exit: May return an error ; ; Use: Removes an element from a given path variable. IMPORT path_removeDir ] ;----- That's all, folks ---------------------------------------------------- END