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 i=`cleanname -d "$pwd" "$i"`29 plumb -s B -d edit "$i"30 done31 else32 for i33 do34 pwd=`pwd`35 file=`cleanname -d $pwd $i`36 line=`echo $file | sed 's/.*://'`37 file=`echo $file | sed 's/:.*//'`38 echo "B $file" >>$sam39 if [ "x$line" != "x" -a "x$line" != "x$file" ]40 then41 echo "$line" >> $sam42 fi43 done44 fi