#!/bin/sh

# This shell script will modify the version number of all 
# ui files found below the current directory from 3.2 to 3.1
#
# This didn't seem to cause any problems so far and makes it
# possible to compile kdebluetooth with Qt 3.1.x

FILES=$(grep -l '<UI version="3.2"' $(find -name \*.ui))
for a in $FILES ; do 
    echo "Changed version from 3.2 to 3.1: $a"
    sed -i 's/<UI version="3\.2"/<UI version="3.1"/' $a
done
