Skip to content

Commit d012478

Browse files
author
delphidabbler
committed
Merge branch 'feature/update-docs' into develop
2 parents c639ac9 + 8b35ec5 commit d012478

17 files changed

+1463
-1841
lines changed

Build.html

Lines changed: 65 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,18 @@
4242
padding: 0;
4343
margin: 0.5em 0;
4444
}
45-
.box, .cmd {
45+
.note, .cmd {
4646
padding: 0.25em;
47-
background-color: #eef;
4847
border: 1px solid silver;
4948
}
49+
.cmd {
50+
background-color: #eef;
51+
font-style: none;
52+
}
53+
.note {
54+
background-color: #ffffcc;
55+
font-style: italic;
56+
}
5057
.cmd {
5158
margin-left: 2em;
5259
margin-right: 2em;
@@ -70,34 +77,28 @@ <h2>
7077

7178
<p>
7279
<em>CodeSnip</em> is written in Object Pascal and is targeted at Delphi
73-
XE. Compilation with earlier compilers is not guaranteed. The code will
74-
require some changes to compile on Delphi XE2 or later.
80+
XE. Compilation with other compilers is not guaranteed.
7581
</p>
7682

7783
<p>
7884
The are currently two editions of <em>CodeSnip</em>: the standard edition and
79-
the portable edition. They both share the same code base and the different
85+
the portable edition. They both share the same code base: the different
8086
editions are created using conditional compilation. These instructions show
8187
how to build either edition.
8288
</p>
8389

84-
<p>
85-
The Delphi XE IDE can be used to modify the source and to perform test builds.
86-
Final builds should be created using the provided makefile.
87-
</p>
88-
8990
<h2>
9091
Dependencies
9192
</h2>
9293

9394
<p>
9495
Several DelphiDabbler and other 3rd party libraries and components are
95-
required to compile <em>CodeSnip</em>. They are included in the code
96+
required to compile <em>CodeSnip</em>. They are all included in the code
9697
repository in the <code>Src/3rdParty</code> directory.
9798
</p>
9899

99100
<p>
100-
Goes without saying really, but you will also need the RTL and VCL that ships with
101+
It goes without saying that you will also need the RTL and VCL that ships with
101102
Delphi.
102103
</p>
103104

@@ -114,17 +115,16 @@ <h3>
114115
</h3>
115116

116117
<p>
117-
A copy of the Delphi XE command line compiler is required to build the
118-
object Pascal code from the provided makefile.
119-
</p>
120-
121-
<p>
122-
You can use the Delphi IDE to edit the code and test compile it, but final
123-
builds should be created using the makefile, which requires the following
124-
tools that are supplied with Delphi:
118+
All the following tools that ship with Delphi XE are required:
125119
</p>
126120

127-
<dl>
121+
<dl class="indent">
122+
<dt class="spaced">
123+
<code>MAKE</code>
124+
</dt>
125+
<dd>
126+
The make tool &ndash; do not use the Microsoft make tool.
127+
</dd>
128128
<dt class="spaced">
129129
<code>DCC32</code>
130130
</dt>
@@ -158,7 +158,7 @@ <h3>
158158
The following environment variables are associated with these tools:
159159
</p>
160160

161-
<dl>
161+
<dl class="indent">
162162
<dt class="spaced">
163163
<code>DELPHIROOT</code> - required unless <code>DELPHIXE</code> is set.
164164
</dt>
@@ -179,15 +179,6 @@ <h3>
179179
</dd>
180180
</dl>
181181

182-
<h3>
183-
MAKE
184-
</h3>
185-
186-
<p>
187-
This is the make tool that ships with Delphi. You can use any version that
188-
works.
189-
</p>
190-
191182
<h3>
192183
DelphiDabbler Version Information Editor (VIEd)
193184
</h3>
@@ -212,8 +203,8 @@ <h3>
212203
</h3>
213204

214205
<p>
215-
HTMLRes is used to compile <code>HTML.hrc</code> which stores various
216-
HTML, JavaScript, CSS and images into HTML resources. Version 1.1 or later
206+
HTMLRes is used to compile <code>HTML.hrc</code> which adds various
207+
HTML, JavaScript, CSS and images to HTML resources. Version 1.1 or later
217208
is required.
218209
The HTML Resource Compiler can be obtained from
219210
<a
@@ -231,9 +222,8 @@ <h3>
231222
</h3>
232223

233224
<p>
234-
The Unicode version on the Inno setup command line compiler is needed to
235-
create <em>CodeSnip</em>'s install program. v5.5.2 (u) or later is required.
236-
Earlier (Unicode) versions may work, but this is not guaranteed.
225+
The Unicode version of the Inno setup command line compiler is needed to
226+
create <em>CodeSnip</em>'s install program. v5.5.2(u) or later is required.
237227
</p>
238228

239229
<p>
@@ -290,10 +280,14 @@ <h3>
290280
</p>
291281

292282
<p>
293-
<strong>Note:</strong> You do not need Zip if you do not intend to create
294-
release files.
283+
You do not need Zip if you do not intend to create release files.
284+
</p>
285+
286+
<p class="note">
287+
<strong>Note:</strong> You can use the Delphi IDE to edit the code and test compile it. However you will need to build the code from the makefile first to ensure all the required resource files and auto-generated files are present. If you change any resource files or type libraries you also need to re-run the makefile. Final builds should always be created using the makefile.
295288
</p>
296289

290+
297291
<h2>
298292
Preparation
299293
</h2>
@@ -335,7 +329,7 @@ <h4>
335329
<pre class="cmd"><span class="prompt">&gt;</span> set PATH=%DELPHIROOT%\Bin;%PATH%</pre>
336330

337331
<p>
338-
You do not have to do this but it means you can run the preferred version of
332+
You do not have to do this but it means you can run
339333
<code>Make</code> from the command line without having to specify its path
340334
every time.
341335
</p>
@@ -372,71 +366,38 @@ <h3>
372366
</h3>
373367

374368
<p>
375-
If you don't already have it, download or checkout the <em>CodeSnip</em>
376-
source code. There are several options:
369+
The source code is maintained in the <code><a href="https://github.com/delphidabbler/codesnip">delphidabbler/codesnip</a></code> Git respository on GitHub.
370+
</p>
371+
372+
<p>
373+
If you are intending to contribute code to the project you need to:
377374
</p>
378375

379376
<ol class="spaced">
380377
<li>
381-
<div>
382-
If you are a Subversion user you can:
383-
</div>
384-
<ul class="spaced">
385-
<li>
386-
<div>
387-
Check out the source using the following command:
388-
</div>
389-
<pre class="cmd"><span class="prompt">&gt;</span> svn checkout https://svn.code.sf.net/p/codesnip/code/trunk PATH</pre>
390-
<div>
391-
or
392-
</div>
393-
<pre class="cmd"><span class="prompt">&gt;</span> svn checkout svn://svn.code.sf.net/p/codesnip/code/trunk PATH</pre>
394-
<div>
395-
Where <code>PATH</code> is the directory where you want to place the
396-
working copy. You will not be able to commit changes unless you join
397-
the project, when a different check out URL is used.
398-
</div>
399-
</li>
400-
<li>
401-
<div>
402-
Export the code using this command:
403-
</div>
404-
<pre class="cmd"><span class="prompt">&gt;</span> svn export https://svn.code.sf.net/p/codesnip/code/trunk PATH</pre>
405-
<div>
406-
or
407-
</div>
408-
<pre class="cmd"><span class="prompt">&gt;</span> svn export svn://svn.code.sf.net/p/codesnip/code/trunk PATH</pre>
409-
<div>
410-
where <code>PATH</code> is the directory where you wish to store the
411-
code.
412-
</div>
413-
</li>
414-
</ul>
415-
<div class="spaced">
416-
These commands get code from the repository trunk. To get the code of a
417-
stable release replace <code>trunk</code> with <code>tags/XXXX</code>
418-
where <code>XXX</code> specifies the version.
419-
</div>
378+
Fork the project on GitHub.
420379
</li>
421380
<li>
422-
Download source files for the current many older releases from the <a
423-
href="https://sourceforge.net/projects/codesnip/files/"
424-
>CodeSnip SourceForge Files Page</a>.
381+
Create a new branch off the <code>development</code> branch.
425382
</li>
426383
<li>
427-
Grab the source code of the latest release from the release page of the <a
428-
href="https://github.com/delphidabbler/codesnip/releases"
429-
>delphidabbler/codesnip</a> repository on GitHub.
384+
Make your changes on the branch you created.
385+
</li>
386+
<li>
387+
Once finished raise a pull request for your code on the <code>delphidabbler/codesnip</code> repo.
430388
</li>
431389
</ol>
432390

391+
<p>
392+
If you only intend to use the code for your own purposes you can still fork the repository as above. Alternatively you can download the source code from the project's <a href="https://github.com/delphidabbler/codesnip/releases">Releases</a> section on GitHub &ndash; just choose the version you want.
393+
</p>
394+
433395
<h3>
434396
Configure the Source Tree
435397
</h3>
436398

437399
<p>
438-
After checking out or downloading and extracting the source code you should
439-
have the following directory structure:
400+
After forking the repository or downloading and extracting the source code you should have the following directory structure:
440401
</p>
441402

442403
<pre>./
@@ -493,23 +454,21 @@ <h3>
493454
<p>
494455
If, by chance you also have <code>Bin</code>, <code>Exe</code> and / or
495456
<code>Release</code> directories don't worry - all will become clear.
496-
Subversion users may also see the usual <code>.svn</code> hidden
497-
directories. If you have done some editing in the Delphi IDE you may also see
457+
Git users may also see the usual <code>.git</code> hidden
458+
directory. If you have done some editing in the Delphi IDE you may also see
498459
occasional hidden <code>__history</code> folders.
499460
</p>
500461

501462
<p>
502463
Before you can get hacking, you need to prepare the code tree. Open a command
503-
console and navigate into the <code>Src</code> sub-folder. Run any script you
504-
have created to set environment variables then do:
464+
console then run any script you may have created to set the required environment variables. Now navigate into the <code>Src</code> sub-folder and do:
505465
</p>
506466

507467
<pre class="cmd"><span class="prompt">&gt;</span> Make config</pre>
508468

509469
<p>
510470
You may need to replace <code>Make</code> with the full path to
511-
<code>Make</code> if it isn't on the path, or if the <code>Make</code> that
512-
runs isn't the CodeGear / Embarcadero version. If this is the case try:
471+
<code>Make</code> if it isn't on the path. If this is the case try:
513472
</p>
514473

515474
<pre class="cmd"><span class="prompt">&gt;</span> %DELPHIROOT%\Bin\Make config</pre>
@@ -525,7 +484,7 @@ <h3>
525484
</p>
526485

527486
<p>
528-
Once <code>Make config</code> has completed your folder structure should
487+
Once <code>Make config</code> has run your folder structure should
529488
have acquired the following new folders, if they weren't present already:
530489
</p>
531490

@@ -545,7 +504,7 @@ <h3>
545504
If the <code>Bin</code> folder already existed, it will have been emptied.
546505
In addition, <code>Make</code> will have created a <code>.cfg</code> file from
547506
template in the <code>Src</code> folder. This <code>.cfg</code> file is needed
548-
for DCC32 to run correctly. The file will be ignored by Subversion.
507+
for DCC32 to run correctly. The file will be ignored by Git.
549508
</p>
550509

551510
<h4>
@@ -599,7 +558,7 @@ <h2>
599558
You have several options:
600559
</p>
601560

602-
<ul>
561+
<ul class="spaced">
603562
<li>
604563
Build the <em>CodeSnip</em> Executable
605564
</li>
@@ -625,10 +584,10 @@ <h2>
625584
<code>Make config</code> has been run.
626585
</p>
627586

628-
<p class="box">
629-
<em><strong>Note:</strong> This information applies only to building
630-
</em>CodeSnip<em> itself, not to building and using the code in the
631-
<code>Test</code> directory.</em>
587+
<p class="note">
588+
<strong>Note:</strong> This information applies only to building
589+
<em>CodeSnip</em> itself, not to building and using the code in the
590+
<code>Test</code> directory.
632591
</p>
633592

634593
<h3>
@@ -730,7 +689,7 @@ <h3>
730689
</h3>
731690

732691
<p>
733-
Make can create zip files containing the files that are included in a release.
692+
Make can create zip files containing all the files that are included in a release.
734693
</p>
735694

736695
<h4>
@@ -740,7 +699,7 @@ <h4>
740699
<p>
741700
The release file for the standard edition of <em>CodeSnip</em> includes the
742701
setup file along with <code>ReadMe.txt</code> from the <code>Docs</code>
743-
directory. Both must be present.
702+
directory. Both files must exist.
744703
</p>
745704

746705
<p>
@@ -783,7 +742,7 @@ <h4>
783742

784743
<pre class="cmd"><span class="prompt">&gt;</span> Make -DPORTABLE -DRELEASEFILENAME=MyPortableRelease.zip release</pre>
785744

786-
<p>
745+
<p class="note">
787746
<strong>Warning:</strong> If you are building both the standard and portable
788747
releases with custom file names, make sure you supply a different value of
789748
the <code>RELEASEFILENAME</code> macro for each release, otherwise the last
@@ -832,9 +791,9 @@ <h3>
832791

833792
<pre class="cmd"><span class="prompt">&gt;</span> Make clean</pre>
834793

835-
<p>
794+
<p class="note">
836795
<strong>Warning:</strong> This command removes the <code>__history</code>
837-
folders that Delphi uses to maintain earlier versions of files.
796+
folders that Delphi uses to roll back to earlier versions of files.
838797
</p>
839798

840799
<h2>

0 commit comments

Comments
 (0)