#!/bin/sh -x if [ "$1" == "main" ]; then rsync=bleeding elif [ "$1" == "4.3" ]; then rsync=4 else echo >&2 "I don't know where to get rsync for $rsync" fi rsync -az --exclude=doc --exclude=.git --delete rsync://rsync.trolltech.com/qt-x11-$rsync qt-$1 && \ rsync -az --exclude=doc --ignore-existing rsync://rsync.trolltech.com/qt-mac-$rsync qt-$1 && \ rsync -az --exclude=doc --ignore-existing rsync://rsync.trolltech.com/qt-win-$rsync qt-$1 && #find qt-$1 -type f -name \*.cpp -o -name \*.c -o -name \*.h -o -name \*.txt -o -name \*.ui | xargs sed -i 's/\r$//' cd qt-$1 git-ls-files -d | xargs -r git rm git-ls-files -m -o | xargs -r git add git commit -m "Update to snapshot `date +%Y%m%d`"