Fix #16698 - Wrong Absolute Links In Navigation ("/" instead of "./")
[phpmyadmin.git] / scripts / check-release-excludes.sh
blob19f3eb9d25f554858979a8b20340a314615b3c42
1 #!/bin/bash
3 set -e
5 FILE="$1"
7 if [ ! -f "${FILE}" ]; then
8 echo 'Please provide a file as a first argument.'
9 exit 1
12 FILE_LIST="$(tar --list --file="${FILE}")"
14 found=0;
16 echo 'Searching for files'
18 foundFile() {
19 found=1
20 printf "Found: %s\n" "${filePath}"
23 for filePath in ${FILE_LIST}; do
24 case $filePath in
25 */.editorconfig)
26 foundFile "${foundFile}";;
27 */easy-coding-standard.neon)
28 foundFile "${foundFile}";;
29 */.travis.yml)
30 foundFile "${foundFile}";;
31 */psalm.xml)
32 foundFile "${foundFile}";;
33 */.coveralls.yml)
34 foundFile "${foundFile}";;
35 */appveyor.yml)
36 foundFile "${foundFile}";;
37 */phpunit.xml)
38 foundFile "${foundFile}";;
39 */phive.xml)
40 foundFile "${foundFile}";;
41 */Makefile)
42 foundFile "${foundFile}";;
43 */phpbench.json)
44 foundFile "${foundFile}";;
45 */.php_cs.dist)
46 foundFile "${foundFile}";;
47 */psalm.xml)
48 foundFile "${foundFile}";;
49 */phpstan.neon)
50 foundFile "${foundFile}";;
51 */phpstan.neon)
52 foundFile "${foundFile}";;
53 */phpcs.xml.dist)
54 foundFile "${foundFile}";;
55 */phpunit.xml.dist)
56 foundFile "${foundFile}";;
57 */.scrutinizer.yml)
58 foundFile "${foundFile}";;
59 */.gitattributes)
60 foundFile "${foundFile}";;
61 */.gitignore)
62 foundFile "${foundFile}";;
63 */.php_cs.cache)
64 foundFile "${foundFile}";;
65 */makefile)
66 foundFile "${foundFile}";;
67 */.phpunit.result.cache)
68 foundFile "${foundFile}";;
69 */phpstan.neon.dist)
70 foundFile "${foundFile}";;
71 */phpstan-baseline.neon)
72 foundFile "${foundFile}";;
73 */phpmd.xml.dist)
74 foundFile "${foundFile}";;
75 */.travis.php.ini)
76 foundFile "${foundFile}";;
77 */vendor/*/tests/*)
78 foundFile "${foundFile}";;
79 */vendor/*/Tests/*)
80 foundFile "${foundFile}";;
81 */vendor/*/test/*)
82 foundFile "${foundFile}";;
83 */.dependabot/*)
84 foundFile "${foundFile}";;
85 */.github/*)
86 foundFile "${foundFile}";;
87 */.circleci/*)
88 foundFile "${foundFile}";;
89 */vendor/examples/*)
90 foundFile "${foundFile}";;
91 */.git/*)
92 foundFile "${foundFile}";;
93 *vendor/*.rst)
94 foundFile "${foundFile}";;
95 *vendor/*.po)
96 foundFile "${foundFile}";;
97 *vendor/*.pot)
98 foundFile "${foundFile}";;
99 *vendor/*.m4)
100 foundFile "${foundFile}";;
101 *vendor/*.c)
102 foundFile "${foundFile}";;
103 *vendor/*.h)
104 foundFile "${foundFile}";;
105 *vendor/*.sh)
106 foundFile "${foundFile}";;
107 *vendor/*.w32)
108 foundFile "${foundFile}";;
109 *.hhconfig)
110 foundFile "${foundFile}";;
111 *.hhi)
112 foundFile "${foundFile}";;
113 *) ;;
114 esac
115 done
117 if [ ${found} -gt 0 ]; then
118 echo 'Some new files to be excluded where found.'
119 echo 'Please update create-release.sh'
120 exit 1
121 else
122 echo 'Everything looks okay'
123 exit 0