9 # Find SHA1 of commit before $subject, else empty string
13 my @commits = `git rev-list --grep="$subject" HEAD~300..HEAD`;
15 my $commit = $commits[0];
17 $commit = `git rev-parse $commit~`;
24 my $current = dirname(abs_path($0));
26 chdir("$current/qtwebkit");
28 if (!findWebKitSHA1("Removed modular references after support for the flag was removed")) {
29 if (system("git am --ignore-whitespace $current/patches/qtwebkit/*.patch")) {
30 print("Applying webkit patches failed, retrying...\n");
31 system("git am --abort");
32 system("git am --ignore-whitespace $current/patches/qtwebkit/*.patch") and die("Could not apply patches");
35 system("git commit -a -m \"Committed Qt Modularization patches to QtWebKit.\" --author \"axis <qt-info\@nokia.com>\"") and die("Could not commit to qt5 repository");