=== modified file 'sbin/zsvgen' --- sbin/zsvgen 2014-02-28 19:17:12 +0000 +++ sbin/zsvgen 2014-02-14 07:30:20 +0000 @@ -1,20 +1,6 @@ #!/bin/zsh # vim: ft=zsh noet ts=4 sts=4 sw=4 -zparseopts -D \ - h=H -help=H \ - f+:=F -filter+:=F - -if [[ -n $H ]]; then cat <>$1 2>&1 shift @@ -31,33 +17,13 @@ zsv_parse for d in /run/zsv/*(N/); do - if (($#F)); then - for pat in $F; do - if [[ $d:t == $~F ]]; then - remove[$d:t]=$d - break - fi - done - else - remove[$d:t]=$d - fi + remove[$d:t]=$d done mkdir -p /run/service for name in $svtab; do unset "remove[$name]" - if (($#F)); then - pat_matches=0 - for pat in $F; do - if [[ $name == $~F ]]; then - pat_matches=1 - break - fi - done - (($pat_matches)) || continue - unset pat pat_matches - fi zsv_eval /run/zsv/$name zsv_dir=$zsv_svdir/$name mkdir -p $zsv_dir