Magellan Linux

Annotation of /trunk/qt4/kde4-qt-patches.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 977 - (hide annotations) (download) (as text)
Wed Feb 10 11:04:06 2010 UTC (14 years, 3 months ago) by niro
File MIME type: application/x-sh
File size: 556 byte(s)
-kde-qt patch script

1 niro 977 #!/bin/bash
2    
3     codir=$(mktemp -d)
4     version="$1"
5    
6     if [[ -z ${version} ]]
7     then
8     echo "no qt version given."
9     exit 1
10     fi
11    
12     # checkout (needs git >=1.6.5)
13     git clone --branch "${version}-patched" 'git://gitorious.org/+kde-developers/qt/kde-qt.git' ${codir}/kde-qt
14    
15     # diff
16     pushd ${codir}/kde-qt
17     kdeqtver=$(git --no-pager show --format='%H' ${version}-patched | head -1)
18     git diff "v${version}..${version}-patched" > ${codir}/qt-${version}-kde-qt-${kdeqtver}.patch
19     popd
20    
21     mv ${codir}/qt-${version}-kde-qt-${kdeqtver}.patch .
22    
23     if [ -d ${codir} ]
24     then
25     rm -rf ${codir}
26     fi

Properties

Name Value
svn:executable *