12f28271dSAlex Bennée# -*- coding:utf-8 -*- 22f28271dSAlex Bennée# Copyright (C) 2006 Libresoft 32f28271dSAlex Bennée# 42f28271dSAlex Bennée# This program is free software; you can redistribute it and/or modify 52f28271dSAlex Bennée# it under the terms of the GNU General Public License as published by 62f28271dSAlex Bennée# the Free Software Foundation; either version 2 of the License, or 7568c439aSPhilippe Mathieu-Daudé# (at your option) any later version. 82f28271dSAlex Bennée# 92f28271dSAlex Bennée# This program is distributed in the hope that it will be useful, 102f28271dSAlex Bennée# but WITHOUT ANY WARRANTY; without even the implied warranty of 112f28271dSAlex Bennée# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 122f28271dSAlex Bennée# GNU Library General Public License for more details. 132f28271dSAlex Bennée# 142f28271dSAlex Bennée# You should have received a copy of the GNU General Public License 15*0c201cc1SKhadija Kamran# along with this program. If not, see <https://www.gnu.org/licenses/>. 162f28271dSAlex Bennée# 172f28271dSAlex Bennée# Authors : Gregorio Robles <grex@gsyc.escet.urjc.es> 182f28271dSAlex Bennée# Authors : Germán Póo-Caamaño <gpoo@gnome.org> 192f28271dSAlex Bennée# 202f28271dSAlex Bennée# This QEMU version is a cut-down version of what originally shipped 212f28271dSAlex Bennée# in the gitdm sample-config directory. 222f28271dSAlex Bennée# 232f28271dSAlex Bennée# This file contains associations parameters regarding filetypes 24639b090dSzhaolichang# (documentation, development, multimedia, images...) 252f28271dSAlex Bennée# 262f28271dSAlex Bennée# format: 272f28271dSAlex Bennée# filetype <type> <regex> [<comment>] 282f28271dSAlex Bennée# 292f28271dSAlex Bennée# Order: 302f28271dSAlex Bennée# The list should keep an order, so filetypes can be counted properly. 312f28271dSAlex Bennée# ie. we want ltmain.sh -> 'build' instead of 'code'. 322f28271dSAlex Bennée# 332f28271dSAlex Bennée# If there is an filetype which is not in order but has values, it will 342f28271dSAlex Bennée# be added at the end. 352f28271dSAlex Bennée# 362f1b409aSMarkus Armbrusterorder build,interface,tests,code,documentation,devel-doc,blobs 372f28271dSAlex Bennée 382f28271dSAlex Bennée# 392f28271dSAlex Bennée# 402f28271dSAlex Bennée# Code files (headers and the like included 412f28271dSAlex Bennée# (most common languages first 422f28271dSAlex Bennée# 432f28271dSAlex Bennéefiletype code \.c$ # C 44139c1837SPaolo Bonzinifiletype code \.c.inc$ # C 452f28271dSAlex Bennéefiletype code \.C$ # C++ 462f28271dSAlex Bennéefiletype code \.cpp$ # C++ 472f28271dSAlex Bennéefiletype code \.c\+\+$ # C++ 482f28271dSAlex Bennéefiletype code \.cxx$ # C++ 492f28271dSAlex Bennéefiletype code \.cc$ # C++ 502f28271dSAlex Bennéefiletype code \.h$ # C or C++ header 512f28271dSAlex Bennéefiletype code \.hh$ # C++ header 522f28271dSAlex Bennéefiletype code \.hpp$ # C++ header 532f28271dSAlex Bennéefiletype code \.hxx$ # C++ header 542f28271dSAlex Bennéefiletype code \.sh$ # Shell 552f28271dSAlex Bennéefiletype code \.pl$ # Perl 562f28271dSAlex Bennéefiletype code \.py$ # Python 572f28271dSAlex Bennéefiletype code \.s$ # Assembly 582f28271dSAlex Bennéefiletype code \.S$ # Assembly 592f28271dSAlex Bennéefiletype code \.asm$ # Assembly 602f28271dSAlex Bennéefiletype code \.awk$ # awk 61639b090dSzhaolichangfiletype code ^common$ # script fragments 62639b090dSzhaolichangfiletype code ^common.*$ # script fragments 632f28271dSAlex Bennéefiletype code (qom|qmp)-\w+$ # python script fragments 642f28271dSAlex Bennée 652f28271dSAlex Bennée# 662f28271dSAlex Bennée# Interface/api files 672f28271dSAlex Bennée# 682f28271dSAlex Bennéefiletype interface \.json$ # json 692f28271dSAlex Bennéefiletype interface \.hx$ # documented options 702f28271dSAlex Bennée 712f28271dSAlex Bennée# 722f28271dSAlex Bennée# Test related blobs (unfortunately we can't filter out test code) 732f28271dSAlex Bennée# 742f28271dSAlex Bennéefiletype tests \.hex$ 752f28271dSAlex Bennéefiletype tests \d{2,3}$ # test data 00-999 762f28271dSAlex Bennéefiletype tests ^[A-Z]{4}$ # ACPI test data 772f28271dSAlex Bennéefiletype tests ^[A-Z]{4}\.*$ # ACPI test data 782f28271dSAlex Bennéefiletype tests \.out$ 792f28271dSAlex Bennéefiletype tests \.out\.nocache$ 802f28271dSAlex Bennéefiletype tests \.err$ 812f28271dSAlex Bennéefiletype tests \.exit$ # bad-if-FOO.exit etc 822f28271dSAlex Bennéefiletype tests \.decode$ 832f28271dSAlex Bennéefiletype tests \.yml$ # travis/shippable config 842f28271dSAlex Bennée 852f28271dSAlex Bennée# 862f28271dSAlex Bennée# Development documentation files (for hacking generally) 872f28271dSAlex Bennée# 882f28271dSAlex Bennéefiletype devel-doc ^readme.*$ 892f28271dSAlex Bennéefiletype devel-doc ^changelog.* 902f28271dSAlex Bennéefiletype devel-doc ^hacking.*$ 912f28271dSAlex Bennéefiletype devel-doc ^licen(s|c)e.*$ 922f28271dSAlex Bennéefiletype devel-doc ^copying.*$ 932f28271dSAlex Bennéefiletype devel-doc ^MAINTAINERS$ 942f28271dSAlex Bennéefiletype devel-doc ^BSD-2-Clause$ 952f28271dSAlex Bennéefiletype devel-doc ^BSD-3-Clause$ 962f28271dSAlex Bennéefiletype devel-doc ^GPL-2.0$ 972f28271dSAlex Bennéefiletype devel-doc \.txt$ 982f28271dSAlex Bennéefiletype devel-doc \.rst$ 992f28271dSAlex Bennéefiletype devel-doc \.texi$ 1002f28271dSAlex Bennéefiletype devel-doc \.pod$ 1012f28271dSAlex Bennée 1022f28271dSAlex Bennée# 1032f28271dSAlex Bennée# Building, compiling, and configuration admin files 1042f28271dSAlex Bennée# 1052f28271dSAlex Bennéefiletype build configure.*$ 1062f28271dSAlex Bennéefiletype build Makefile$ 1072f28271dSAlex Bennéefiletype build Makefile\.*$ 1082f28271dSAlex Bennéefiletype build config$ 1092f28271dSAlex Bennéefiletype build conf$ 1102f28271dSAlex Bennéefiletype build \.cfg$ 1112f28271dSAlex Bennéefiletype build \.mk$ 1122f28271dSAlex Bennéefiletype build \.mak$ 1132f28271dSAlex Bennéefiletype build \.docker$ 1142f28271dSAlex Bennéefiletype build \.pre$ 1152f28271dSAlex Bennéefiletype build ^.gitignore$ 1162f28271dSAlex Bennéefiletype build ^.gitmodules$ 1172f28271dSAlex Bennéefiletype build ^.gitpublish$ 1182f28271dSAlex Bennéefiletype build ^.mailmap$ 1192f28271dSAlex Bennéefiletype build ^.dir-locals.el$ 1202f28271dSAlex Bennéefiletype build ^.editorconfig$ 1212f28271dSAlex Bennéefiletype build ^.exrc$ 1222f28271dSAlex Bennéefiletype build ^.gdbinit$ 1232f28271dSAlex Bennéefiletype build \.cocci$ # Coccinelle semantic patches 1242f28271dSAlex Bennée 1252f28271dSAlex Bennée# 1262f28271dSAlex Bennée# Misc blobs 1272f28271dSAlex Bennée# 1282f28271dSAlex Bennéefiletype blobs \.bin$ 1292f28271dSAlex Bennéefiletype blobs \.dtb$ 1302f28271dSAlex Bennéefiletype blobs \.dts$ 1312f28271dSAlex Bennéefiletype blobs \.rom$ 1322f28271dSAlex Bennéefiletype blobs \.img$ 1332f28271dSAlex Bennéefiletype blobs \.ndrv$ 1342f28271dSAlex Bennéefiletype blobs \.bmp$ 1352f28271dSAlex Bennéefiletype blobs \.svg$ 1362f28271dSAlex Bennéefiletype blobs ^pi_10.com$ 1372f28271dSAlex Bennée 1382f28271dSAlex Bennée 1392f28271dSAlex Bennée# 1402f28271dSAlex Bennée# Documentation files 1412f28271dSAlex Bennée# 1422f28271dSAlex Bennéefiletype documentation \.html$ 1432f28271dSAlex Bennéefiletype documentation \.txt$ 1442f28271dSAlex Bennéefiletype documentation \.texi$ 1452f28271dSAlex Bennéefiletype documentation \.po$ # translation files 146