ref: 600bbfe4aaa9ad0f73d8d73eef1b7670e5f7d3a3
dir: /os/port/mkfilelist/
#!/bin/rc rfork e switch($#*){ case 1 RE=`{echo *.c | sed 's/ /|/g; s/.*/^(&)$/'} if(~ $RE '^(*.c)$') LIST=`{builtin cd $1; ls *.c } if not LIST=`{builtin cd $1; ls *.c | grep -v ''$RE''} echo $LIST | sed 's/\.c//g; s/ +/|/g' case * exit 'usage' } exit ''