Blob
1 #!/bin/sh3 files=""4 dest=""6 if [ $# -eq 0 ]7 then8 echo 'usage: B file...' 2>&19 exit 110 fi12 if [ "x$DISPLAY" = "x" ]13 then14 sam="/tmp/.sam.$USER"15 else16 if [ "$DISPLAY" = ":0" ]17 then18 DISPLAY=:0.019 fi20 sam="/tmp/.sam.$USER.$DISPLAY"21 fi23 if [ ! -p $sam ]24 then25 for i26 do27 plumb -s B -d edit $i28 done29 else30 for i31 do32 pwd=`pwd`33 file=`cleanname -d $pwd $i`34 line=`echo $file | sed 's/.*://'`35 file=`echo $file | sed 's/:.*//'`36 echo "B $file" >>$sam37 if [ "x$line" != "x" -a "x$line" != "x$file" ]38 then39 echo "$line" >> $sam40 fi41 done42 fi