Feature #1269 ยป 0021-Move-src-check-functionality-to-new-src-check.sh.patch
| tests/Makefile.am | ||
|---|---|---|
|
# the results of the checks. It might be better to actually fail the make run
|
||
|
# if the check fails.
|
||
|
src-check:
|
||
|
rm -f check-output check-output_
|
||
|
$(srcdir)/check_macros.sh $(top_srcdir) >> check-output_
|
||
|
$(srcdir)/copyright.sh $(top_srcdir) >> check-output_
|
||
|
$(srcdir)/fcintl.sh $(top_srcdir) >> check-output_
|
||
|
$(srcdir)/header_guard.sh $(top_srcdir) >> check-output_
|
||
|
$(srcdir)/va_list.sh $(top_srcdir) >> check-output_
|
||
|
$(srcdir)/trailing_spaces.sh $(top_srcdir) >> check-output_
|
||
|
cat check-output_ | sed "s,$(top_srcdir)/,," > check-output
|
||
|
rm -f check-output_
|
||
|
.PHONY: src-check
|
||
|
$(srcdir)/src-check.sh
|
||
|
CLEANFILES = check-output
|
||
| ... | ... | |
|
rs_test_res/ruleset_list_opt.txt \
|
||
|
rs_test_res/ruleset_loads.sh.in \
|
||
|
rulesets_autohelp.sh.in \
|
||
|
src-check.sh \
|
||
|
trailing_spaces.sh \
|
||
|
va_list.sh
|
||
| tests/src-check.sh | ||
|---|---|---|
|
#!/bin/sh
|
||
|
#/***********************************************************************
|
||
|
# Freeciv - Copyright (C) 2004-2025
|
||
|
# This program is free software; you can redistribute it and/or modify
|
||
|
# it under the terms of the GNU General Public License as published by
|
||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||
|
# any later version.
|
||
|
#
|
||
|
# This program is distributed in the hope that it will be useful,
|
||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
# GNU General Public License for more details.
|
||
|
#
|
||
|
#***********************************************************************/
|
||
|
srcdir="$(dirname "$0")"
|
||
|
top_srcdir="$(cd "$srcdir/.." && pwd)"
|
||
|
rm -f check-output check-output_
|
||
|
${srcdir}/check_macros.sh ${top_srcdir} >> check-output_
|
||
|
${srcdir}/copyright.sh ${top_srcdir} >> check-output_
|
||
|
${srcdir}/fcintl.sh ${top_srcdir} >> check-output_
|
||
|
${srcdir}/header_guard.sh ${top_srcdir} >> check-output_
|
||
|
${srcdir}/va_list.sh ${top_srcdir} >> check-output_
|
||
|
${srcdir}/trailing_spaces.sh ${top_srcdir} >> check-output_
|
||
|
cat check-output_ | sed "s,${top_srcdir}/,," > check-output
|
||
|
rm -f check-output_
|
||