setperl.html 3.96 KB
Newer Older
1 2 3 4 5 6
<HTML
><HEAD
><TITLE
>The setperl.csh Utility</TITLE
><META
NAME="GENERATOR"
7
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
8 9 10 11 12 13 14 15
"><LINK
REL="HOME"
TITLE="The Bugzilla Guide"
HREF="index.html"><LINK
REL="UP"
TITLE="Useful Patches and Utilities for Bugzilla"
HREF="patches.html"><LINK
REL="PREVIOUS"
16 17
TITLE="Apache mod_rewrite magic"
HREF="rewrite.html"><LINK
18 19 20 21
REL="NEXT"
TITLE="Command-line Bugzilla Queries"
HREF="cmdline.html"></HEAD
><BODY
22
CLASS="section"
23 24 25 26 27 28 29 30
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
31
SUMMARY="Header navigation table"
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>The Bugzilla Guide</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
48
HREF="rewrite.html"
49
ACCESSKEY="P"
50 51 52 53 54 55 56 57 58 59 60 61 62
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Appendix D. Useful Patches and Utilities for Bugzilla</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="cmdline.html"
63
ACCESSKEY="N"
64 65 66 67 68 69 70 71
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
72
CLASS="section"
73
><H1
74
CLASS="section"
75
><A
76
NAME="setperl">D.2. The setperl.csh Utility</H1
77 78 79 80 81 82 83
><P
>	 You can use the "setperl.csh" utility to quickly and
      easily change the path to perl on all your Bugzilla files. This
      is a C-shell script; if you do not have "csh" or "tcsh" in the
      search path on your system, it will not work!
    </P
><DIV
84
CLASS="procedure"
85 86 87 88
><OL
TYPE="1"
><LI
><P
89
>&#13;	  Download the "setperl.csh" utility to your Bugzilla
90 91 92 93 94 95 96
	  directory and make it executable.
	</P
><OL
CLASS="SUBSTEPS"
TYPE="a"
><LI
><P
97 98 99 100
>&#13;	      <TT
CLASS="computeroutput"
>&#13;		<TT
CLASS="prompt"
101 102 103
>bash#</TT
>
		<B
104
CLASS="command"
105 106 107 108 109 110 111 112
>cd /your/path/to/bugzilla</B
>
	      </TT
>
	    </P
></LI
><LI
><P
113 114
>&#13;	      <TT
CLASS="computeroutput"
115
> <TT
116
CLASS="prompt"
117 118
>bash#</TT
> <B
119
CLASS="command"
120 121 122 123 124 125 126 127 128
>wget -O
		  setperl.csh
		  'http://bugzilla.mozilla.org/showattachment.cgi?attach_id=10795'</B
> </TT
>
	    </P
></LI
><LI
><P
129 130
>&#13;	      <TT
CLASS="computeroutput"
131
> <TT
132
CLASS="prompt"
133 134
>bash#</TT
> <B
135
CLASS="command"
136 137 138 139 140 141 142 143 144 145
>chmod
		  u+x setperl.csh</B
> </TT
>
	    </P
></LI
></OL
></LI
><LI
><P
146
>&#13;	  Prepare (and fix) Bugzilla file permissions.
147 148 149 150 151 152
	</P
><OL
CLASS="SUBSTEPS"
TYPE="a"
><LI
><P
153 154 155 156
>&#13;	      <TT
CLASS="computeroutput"
>&#13;		<TT
CLASS="prompt"
157 158 159
>bash#</TT
>
		<B
160
CLASS="command"
161 162 163 164 165 166 167 168
>chmod u+w *</B
>
	      </TT
>
	    </P
></LI
><LI
><P
169 170
>&#13;	      <TT
CLASS="computeroutput"
171
> <TT
172
CLASS="prompt"
173 174
>bash#</TT
> <B
175
CLASS="command"
176 177 178 179 180 181 182 183
>chmod
		  u+x duplicates.cgi</B
> </TT
>
	    </P
></LI
><LI
><P
184 185 186 187
>&#13;	      <TT
CLASS="computeroutput"
>&#13;		<TT
CLASS="prompt"
188 189 190
>bash#</TT
>
		<B
191
CLASS="command"
192 193 194 195 196 197 198 199 200 201
>chmod a-x bug_status.html</B
>
	      </TT
>
	    </P
></LI
></OL
></LI
><LI
><P
202
>&#13;	  Run the script:
203 204
	</P
><P
205 206
>&#13;	  <TT
CLASS="computeroutput"
207
> <TT
208
CLASS="prompt"
209 210 211
>bash#</TT
>
	    <B
212
CLASS="command"
213 214 215 216 217
>./setperl.csh /your/path/to/perl</B
>
	  </TT
>
<DIV
218
CLASS="example"
219
><A
220
NAME="AEN2380"><P
221 222 223 224
><B
>Example D-1. Using Setperl to set your perl path</B
></P
><P
225 226
>&#13;	      <TT
CLASS="computeroutput"
227
> <TT
228
CLASS="prompt"
229 230 231
>bash#</TT
>
		<B
232
CLASS="command"
233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249
>./setperl.csh /usr/bin/perl</B
>
	      </TT
>
            </P
></DIV
>
	</P
></LI
></OL
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
250
SUMMARY="Footer navigation table"
251 252 253 254 255 256 257 258 259 260
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
261
HREF="rewrite.html"
262
ACCESSKEY="P"
263 264 265 266 267 268 269 270
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
271
ACCESSKEY="H"
272 273 274 275 276 277 278 279
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="cmdline.html"
280
ACCESSKEY="N"
281 282 283 284 285 286 287 288
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
289
>Apache <TT
290
CLASS="filename"
291 292
>mod_rewrite</TT
> magic</TD
293 294 295 296 297 298
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="patches.html"
299
ACCESSKEY="U"
300 301 302 303 304 305 306 307 308 309 310 311 312
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Command-line Bugzilla Queries</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>