Initial revision
[ssr] / StraySrc / Utilities / sh / pathUtil
1 ;
2 ; pathUtil.sh
3 ;
4 ; Messing about with path variables
5 ;
6 ; © 1994-1998 Straylight
7 ;
8
9 ;----- Licensing note -------------------------------------------------------
10 ;
11 ; This file is part of Straylight's core utilities (coreutils).
12 ;
13 ; Coreutils is free software; you can redistribute it and/or modify
14 ; it under the terms of the GNU General Public License as published by
15 ; the Free Software Foundation; either version 2, or (at your option)
16 ; any later version.
17 ;
18 ; Coreutils is distributed in the hope that it will be useful,
19 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
20 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ; GNU General Public License for more details.
22 ;
23 ; You should have received a copy of the GNU General Public License
24 ; along with Coreutils. If not, write to the Free Software Foundation,
25 ; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26
27 ;----- Overview -------------------------------------------------------------
28 ;
29 ; Functions provided:
30 ;
31 ; path_addDir
32 ; path_removeDir
33
34 [ :LNOT::DEF:pathUtil__dfn
35 GBLL pathUtil__dfn
36
37 ; --- path_addDir ---
38 ;
39 ; On entry: R0 == pointer to path variable name
40 ; R1 == pointer to a directory string to add in
41 ;
42 ; On exit: CS if path element added, CC otherwise
43 ; May return an error
44 ;
45 ; Use: Adds a directory to the given path variable.
46
47 IMPORT path_addDir
48
49 ; --- path_removeDir ---
50 ;
51 ; On entry: R0 == pointer to name of path variable
52 ; R1 == pointer to a directory to remove
53 ;
54 ; On exit: May return an error
55 ;
56 ; Use: Removes an element from a given path variable.
57
58 IMPORT path_removeDir
59
60 ]
61
62 ;----- That's all, folks ----------------------------------------------------
63
64 END