[WIP] start to make dep.pl part of helper.pl
This commit is contained in:
parent
d45a80ec1c
commit
712919f337
0
dep.pl → helper-dep.pl
Executable file → Normal file
0
dep.pl → helper-dep.pl
Executable file → Normal file
@ -275,6 +275,11 @@ sub process_makefiles {
|
||||
}
|
||||
}
|
||||
|
||||
sub update_dep {
|
||||
system("perl helper-dep.pl");
|
||||
return $? != 0;
|
||||
}
|
||||
|
||||
sub die_usage {
|
||||
die <<"MARKER";
|
||||
usage: $0 -s OR $0 --check-source
|
||||
@ -300,6 +305,7 @@ $failure ||= check_comments() if $check_all || $check_comments;
|
||||
$failure ||= check_doc() if $check_doc; # temporarily excluded from --check-all
|
||||
$failure ||= process_makefiles(0) if $check_all || $check_makefiles;
|
||||
$failure ||= process_makefiles(1) if $update_makefiles;
|
||||
$failure ||= update_dep() if $update_makefiles;
|
||||
|
||||
die_usage unless defined $failure;
|
||||
exit $failure ? 1 : 0;
|
||||
|
3
makefile
3
makefile
@ -149,8 +149,7 @@ zipup: clean astyle new_file manual poster docs
|
||||
gpg -b -a ltm-$(VERSION).zip
|
||||
|
||||
new_file:
|
||||
perl helper.pl --update-makefiles || exit 1
|
||||
perl dep.pl
|
||||
perl helper.pl --update-makefiles
|
||||
|
||||
perlcritic:
|
||||
perlcritic *.pl doc/*.pl
|
||||
|
@ -295,9 +295,10 @@ if [[ "$CHECK_FORMAT" == "1" ]]
|
||||
then
|
||||
make astyle
|
||||
_check_git "make astyle"
|
||||
make new_file
|
||||
_check_git "make format"
|
||||
perl helper.pl -a
|
||||
perl helper.pl --update-makefiles
|
||||
_check_git "helper.pl --update-makefiles"
|
||||
perl helper.pl --check-all
|
||||
_check_git "helper.pl --check-all"
|
||||
exit $?
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user