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
46d3352f
Commit
46d3352f
authored
Oct 22, 2004
by
myk%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for bug 256208: makes checksetup.pl create CVS-ignored skins/custom/ and…
fix for bug 256208: makes checksetup.pl create CVS-ignored skins/custom/ and children; r=gerv, a=justdave
parent
e843ae2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
0 deletions
+51
-0
checksetup.pl
checksetup.pl
+51
-0
No files found.
checksetup.pl
View file @
46d3352f
...
...
@@ -942,6 +942,55 @@ unless (-d "$webdotdir") {
mkdir
"$webdotdir"
,
0700
;
}
if
(
!-
d
"skins/custom"
)
{
# perms/ownership are fixed up later
mkdir
"skins/custom"
,
0700
;
}
# Whether or not the custom skin directory has been ignored (i.e. added to
# skins/.cvsignore).
sub
customSkinsIgnored
{
if
(
!-
e
"skins/.cvsignore"
)
{
return
0
;
}
else
{
open
CVSIGNORE
,
'<'
,
"skins/.cvsignore"
;
while
(
<
CVSIGNORE
>
)
{
chomp
;
if
(
/^custom$/
)
{
close
CVSIGNORE
;
return
1
;
}
}
close
CVSIGNORE
;
return
0
;
}
}
# If the custom skin directory hasn't been ignored, ignore it (i.e. add it to
# skins/.cvsignore).
if
(
!
customSkinsIgnored
())
{
open
CVSIGNORE
,
'>>'
,
"skins/.cvsignore"
;
print
CVSIGNORE
"custom\n"
;
close
CVSIGNORE
;
}
# Create custom stylesheets for each standard stylesheet.
foreach
my
$standard
(
<
skins
/standard/
*.
css
>
)
{
my
$custom
=
$standard
;
$custom
=~
s
|^
skins
/standard|skins/c
ustom
|
;
if
(
!-
e
$custom
)
{
open
STYLESHEET
,
'>'
,
$custom
;
print
STYLESHEET
<<"END";
/*
* Custom rules for $standard.
* The rules you put here override rules in that stylesheet.
*/
END
close
STYLESHEET
;
}
}
if
(
$my_create_htaccess
)
{
my
$fileperm
=
0644
;
my
$dirperm
=
01777
;
...
...
@@ -1330,6 +1379,7 @@ if ($^O !~ /MSWin32/i) {
fixPerms
(
$templatedir
,
$<
,
$webservergid
,
027
,
1
);
fixPerms
(
'images'
,
$<
,
$webservergid
,
027
,
1
);
fixPerms
(
'css'
,
$<
,
$webservergid
,
027
,
1
);
fixPerms
(
'skins'
,
$<
,
$webservergid
,
027
,
1
);
fixPerms
(
'js'
,
$<
,
$webservergid
,
027
,
1
);
chmod
0644
,
'globals.pl'
;
...
...
@@ -1356,6 +1406,7 @@ if ($^O !~ /MSWin32/i) {
fixPerms
(
$templatedir
,
$<
,
$gid
,
022
,
1
);
fixPerms
(
'images'
,
$<
,
$gid
,
022
,
1
);
fixPerms
(
'css'
,
$<
,
$gid
,
022
,
1
);
fixPerms
(
'skins'
,
$<
,
$gid
,
022
,
1
);
fixPerms
(
'js'
,
$<
,
$gid
,
022
,
1
);
# Don't use fixPerms here, because it won't change perms on the directory
...
...
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