Annotation of home/as/.csh/rcdscripts.csh, revision 1.1
1.1 ! as 1: # $Paefchen$
! 2:
! 3: # CSHRC_RELOAD: YES
! 4: # CSHRC_ROMPTONLY: YES
! 5: # CSHRC_OSONLY: freebsd
! 6: # CSHRC_DESCR: Hilfs-Skripts neu laden
! 7:
! 8:
! 9: if (! $?CSHRC_MD_RCDSCRIPTS_PATH) then
! 10: set _paths
! 11: foreach _dir (/etc/rc.d `rcdgetconfigarg local_startup`)
! 12: if (-d $_dir) set _paths = "${_paths} ${_dir}"
! 13: end
! 14: unset _dir
! 15: else
! 16: set _paths = $CSHRC_MD_RCDSCRIPTS_PATH
! 17: endif
! 18:
! 19: whan "suche RC.D skripts in ${_paths}: "
! 20:
! 21: # gefundene Skripts durchgehen und aliase setzen
! 22: foreach _script (`find $_paths -type f -exec test -x {} \; -print | tr "\n" ' '`)
! 23: whan $_script:t:r
! 24: alias "rc_$_script:t:r" "$_script"
! 25: end
! 26:
! 27: unset _script _path