#!/bin/bash # # Change this to point to your smartblend.exe SMARTBLENDEXE="/home/bbb/bin/smartblend_1_2_5/smartblend.exe" # Do not change this SMARTBLEND=${SMARTBLEND-$SMARTBLENDEXE} SMARTBLENDARGS=`echo $* \ | sed -re "s/--compression NONE ?//" \ -e "s/--compression PACKBITS ?//" \ -e "s/--compression LZW ?//" \ -e "s/--compression DEFLATE ?//" \ -e "s/--compression [0-9]+ ?//" \ -e "s/--gpu ?//" \ -e "s/-f *[0-9]+x[0-9]+\+?[0-9]*\+?[0-9]* //" \ -e "s/-l *[0-9]+ //" \ -e "s/-m [0-9]+ //"` echo -e "\nExecuting smartblend.exe $SMARTBLENDARGS\n" wine "$SMARTBLEND" $SMARTBLENDARGS exit $?