[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 {
|
sub die_usage {
|
||||||
die <<"MARKER";
|
die <<"MARKER";
|
||||||
usage: $0 -s OR $0 --check-source
|
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 ||= check_doc() if $check_doc; # temporarily excluded from --check-all
|
||||||
$failure ||= process_makefiles(0) if $check_all || $check_makefiles;
|
$failure ||= process_makefiles(0) if $check_all || $check_makefiles;
|
||||||
$failure ||= process_makefiles(1) if $update_makefiles;
|
$failure ||= process_makefiles(1) if $update_makefiles;
|
||||||
|
$failure ||= update_dep() if $update_makefiles;
|
||||||
|
|
||||||
die_usage unless defined $failure;
|
die_usage unless defined $failure;
|
||||||
exit $failure ? 1 : 0;
|
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
|
gpg -b -a ltm-$(VERSION).zip
|
||||||
|
|
||||||
new_file:
|
new_file:
|
||||||
perl helper.pl --update-makefiles || exit 1
|
perl helper.pl --update-makefiles
|
||||||
perl dep.pl
|
|
||||||
|
|
||||||
perlcritic:
|
perlcritic:
|
||||||
perlcritic *.pl doc/*.pl
|
perlcritic *.pl doc/*.pl
|
||||||
|
@ -295,9 +295,10 @@ if [[ "$CHECK_FORMAT" == "1" ]]
|
|||||||
then
|
then
|
||||||
make astyle
|
make astyle
|
||||||
_check_git "make astyle"
|
_check_git "make astyle"
|
||||||
make new_file
|
perl helper.pl --update-makefiles
|
||||||
_check_git "make format"
|
_check_git "helper.pl --update-makefiles"
|
||||||
perl helper.pl -a
|
perl helper.pl --check-all
|
||||||
|
_check_git "helper.pl --check-all"
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user