File: list

package info (click to toggle)
mocka 9905-2
  • links: PTS
  • area: non-free
  • in suites: potato, sarge, woody
  • size: 5,436 kB
  • ctags: 160
  • sloc: asm: 23,203; makefile: 124; sh: 102; ansic: 23
file content (13 lines) | stat: -rwxr-xr-x 214 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

LIST=/tmp/$1.$$
SRC=$1
ERROR=$2

trap "rm -f $LIST; exit 5" 3
$MOCKADIR/sys/lister $SRC $ERROR $LIST
vi +'map v j/^@[ ]*^
/\^
k|1' $LIST < /dev/tty; 
$MOCKADIR/sys/unlister $SRC $LIST
rm -f $LIST $ERROR