Annotation of home/as/.csh/path.csh, revision 1.1

1.1     ! as          1: # $Paefchen$
        !             2: 
        !             3: # CSHRC_RELOAD: YES
        !             4: # CSHRC_ROMPTONLY: NO
        !             5: # CSHRC_DESCR: Pfade neu einlesen
        !             6: 
        !             7: if ($OSTYPE:al == 'darwin') then
        !             8: 
        !             9: if (! $?PATH) setenv PATH
        !            10: if (! $?MANPATH) setenv MANPATH
        !            11: if (! $?INFOPATH) setenv INFOPATH
        !            12: 
        !            13: if (! $?AS_CSHRC_PATH_BEGIN) set AS_CSHRC_PATH_BEGIN
        !            14: if (! $?AS_CSHRC_PATH_AFTER) set AS_CSHRC_PATH_AFTER
        !            15: 
        !            16: switch ($OSTYPE:al)
        !            17: case freebsd:
        !            18:        path_add_after MANPATH /usr/share/man
        !            19:        path_add_after MANPATH /usr/local/man
        !            20:        if (-d /usr/share/info) then
        !            21:                path_add_after INFOPATH /usr/share/info
        !            22:        endif
        !            23:        path_add_after INFOPATH /usr/local/info
        !            24:        breaksw
        !            25: endsw
        !            26: 
        !            27: foreach where (BEGIN AFTER)
        !            28:        set list = `eval echo '$'"AS_CSHRC_PATH_${where}"`
        !            29:        foreach _path ($list)
        !            30:                set add_path = "path_add_$where:al"
        !            31:                eval $add_path PATH $_path/bin
        !            32:                eval $add_path PATH $_path/sbin
        !            33:                eval $add_path MANPATH $_path/man
        !            34:                eval $add_path MANPATH $_path/share/man
        !            35:                eval $add_path INFOPATH $_path/info
        !            36:                eval $add_path INFOPATH $_path/share/info
        !            37:        end
        !            38: end
        !            39: 
        !            40: unset where list _path add_path
        !            41: 
        !            42: rehash
        !            43: 
        !            44: endif