File indexing completed on 2024-04-14 09:14:19

0001 #! /bin/sh
0002 
0003 #
0004 # Copyright 2016 Kevin Ottens <ervin@kde.org>
0005 #
0006 # This program is free software; you can redistribute it and/or
0007 # modify it under the terms of the GNU General Public License as
0008 # published by the Free Software Foundation; either version 2 of
0009 # the License or (at your option) version 3 or any later version
0010 # accepted by the membership of KDE e.V. (or its successor approved
0011 # by the membership of KDE e.V.), which shall act as a proxy
0012 # defined in Section 14 of version 3 of the license.
0013 #
0014 # This program is distributed in the hope that it will be useful,
0015 # but WITHOUT ANY WARRANTY; without even the implied warranty of
0016 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0017 # GNU General Public License for more details.
0018 #
0019 # You should have received a copy of the GNU General Public License
0020 # along with this program; if not, write to the Free Software
0021 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
0022 # USA.
0023 #
0024 
0025 curl https://projects.kde.org/kde_projects.xml |
0026 perl -n -e 'if (/<path>frameworks\/(.*?)<\/path>/) { print "$1\n" }' |
0027 sort -u |
0028 while read fw ; do
0029         echo "if allof (header :contains \"List-Id\" \"kde-commits.kde.org\","
0030         echo "          header :is \"X-Commit-Project\" \"$fw\") {"
0031         echo "    fileinto \"Mailing Lists/kde-commits/frameworks\";"
0032         echo "    stop;"
0033         echo "}"
0034         echo ""
0035 done
0036