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 pwd="`pwd`"26 for i27 do28 plumb -s B -d edit $i29 done30 else31 for i32 do33 pwd=`pwd`34 file=`cleanname -d $pwd $i`35 line=`echo $file | sed 's/.*://'`36 file=`echo $file | sed 's/:.*//'`37 echo "B $file" >>$sam38 if [ "x$line" != "x" -a "x$line" != "x$file" ]39 then40 echo "$line" >> $sam41 fi42 done43 fi