Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
335b8c12
Commit
335b8c12
authored
Feb 20, 2005
by
mkanat%kerio.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 282728: Add a switch to checksetup to skip compiling the templates
Patch By Max Kanat-Alexander <mkanat@kerio.com> r=travis, a=justdave
parent
fbd73820
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
checksetup.pl
checksetup.pl
+12
-2
No files found.
checksetup.pl
View file @
335b8c12
...
...
@@ -133,6 +133,10 @@ use Bugzilla::Constants;
my
$silent
;
my
%
switch
;
$switch
{
'no_templates'
}
=
grep
(
/^--no-templates$/
,
@ARGV
)
||
grep
(
/^-t$/
,
@ARGV
);
# The use of some Bugzilla modules brings in modules we need to test for
# Check first, via BEGIN
BEGIN
{
...
...
@@ -151,10 +155,16 @@ sub help_page {
$programname
=~
s
#^\./##;
print
"$programname - checks your setup and updates your Bugzilla installation\n"
;
print
"\nUsage: $programname [SCRIPT [--verbose]] [--check-modules|--help]\n"
;
print
" [--no-templates]\n"
;
print
"\n"
;
print
" --help Display this help text.\n"
;
print
" --check-modules Only check for correct module dependencies and quit thereafter;\n"
;
print
" does not perform any changes.\n"
;
print
" --no-templates (-t) Don't compile the templates at all. Existing\n"
;
print
" compiled templates will remain; missing compiled\n"
;
print
" templates will not be created. (Used primarily by\n"
;
print
" developers to speed up checksetup.) Use this\n"
;
print
" switch at your own risk.\n"
;
print
" SCRIPT Name of script to drive non-interactive mode.\n"
;
print
" This script should define an \%answer hash whose\n"
;
print
" keys are variable names and the values answers to\n"
;
...
...
@@ -173,7 +183,7 @@ sub help_page {
# Grep this file for references to that hash to see the tags to use for the
# possible answers. One example is ADMIN_EMAIL.
###########################################################################
if
(
$ARGV
[
0
]
&&
(
$ARGV
[
0
]
!~
/^-
-
/
))
{
if
(
$ARGV
[
0
]
&&
(
$ARGV
[
0
]
!~
/^-/
))
{
do
$ARGV
[
0
]
or
(
$@
&&
die
(
"Error $@ processing $ARGV[0]"
))
or
die
(
"Error $! processing $ARGV[0]"
);
...
...
@@ -1175,7 +1185,7 @@ END
}
}
{
unless
(
$switch
{
'no_templates'
})
{
if
(
-
e
"$datadir/template"
)
{
print
"Removing existing compiled templates ...\n"
unless
$silent
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment