python-docs-fr/.scripts/check-headers.sh
Julien Palard 4b1228c08d
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
make verifs: Do not wait indefinitely on stdin when nothing changed.
2023-04-14 14:51:09 +02:00

24 lines
612 B
Bash

#!/bin/sh
if [ -z "$*" ]
then
exit 0
fi
grep -L '^# Copyright (C) [0-9-]*, Python Software Foundation' $* | while read -r file
do
echo "Please update the po comment in $file"
done
grep -L '^"Project-Id-Version: Python 3\\n"$' $* | while read -r file
do
echo "Please update the 'Project-Id-Version' header in $file"
done
grep -L '^"Language: fr\\n"$' $* | while read -r file
do
echo "Please update the 'Language' header in $file"
done
grep -L '^"Language-Team: FRENCH <traductions@lists.afpy.org>\\n"' $* | while read -r file
do
echo "Please update the 'Language-Team' header in $file"
done