You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/general.rst
+19-22Lines changed: 19 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,23 +4,20 @@
4
4
General
5
5
=======
6
6
7
-
.. contents::
8
-
:depth: 3
9
-
10
7
AboutCode Toolkit Defined
11
8
=========================
12
9
13
-
AboutCode Toolkit is a tool for your software development team to document your code inside your codebase, typically in preparation for a product release, side-by-side with the actual code. AboutCode Toolkit files have a simple, standard format that identifies components and their associated licenses. The current AboutCode Toolkit subcommands are:
10
+
AboutCode Toolkit is a tool for your software development team to document your code inside your codebase, typically in preparation for a product release, side-by-side with the actual code. ABOUT file(s) have a simple, standard format that identifies components and their associated licenses. The current AboutCode Toolkit subcommands are:
14
11
15
-
- **attrib**: Generate a Product Attribution notice document (HTML format) from your AboutCode Toolkit files. You can also generate documents for other purposes (such as a License Reference) by varying your input control file and your template.
12
+
- **attrib**: Generate a Product Attribution notice document (HTML format) from your ABOUT file(s). You can also generate documents for other purposes (such as a License Reference) by varying your input control file and your template.
16
13
17
-
- **check**: A simple command to validate the AboutCode Toolkit files and output errors/warnings if any on the terminal.
14
+
- **check**: A simple command to validate the ABOUT file(s) and output errors/warnings if any on the terminal.
18
15
19
-
- **collect_redist_src**: A command to collect and copy sources that have 'redistribute' flagged as 'True' in AboutCode Toolkit files or from an inventory.
16
+
- **collect_redist_src**: A command to collect and copy sources that have 'redistribute' flagged as 'True' in ABOUT file(s) or from an inventory.
20
17
21
-
- **gen**: Create AboutCode Toolkit files from a Software Inventory file (.csv or .json format) which is typically created from a software audit, and insert these AboutCode Toolkit files into your codebase. You can regenerate the AboutCode Toolkit files from a new Software Inventory file whenever you make changes.
18
+
- **gen**: Create ABOUT file(s) from a Software Inventory file (.csv or .json format) which is typically created from a software audit, and insert these AboutCode Toolkit files into your codebase. You can regenerate the AboutCode Toolkit files from a new Software Inventory file whenever you make changes.
22
19
23
-
- **inventory**: Generate a Software Inventory list (.csv or .json format) from your codebase based on your AboutCode Toolkit files. Note that this Software Inventory will only include components that have AboutCode Toolkit data. In another word, if you do not create AboutCode Toolkit files for your own original software components, these components will not show up in the generated inventory.
20
+
- **inventory**: Generate a Software Inventory list (.csv or .json format) from your codebase based on ABOUT file(s). Note that this Software Inventory will only include components that have AboutCode Toolkit data. In another word, if you do not create AboutCode Toolkit files for your own original software components, these components will not show up in the generated inventory.
24
21
25
22
- **transform**: A command to transform an input CSV/JSON by applying renaming and/or filtering and then output to a new CSV/JSON file.
26
23
@@ -38,8 +35,8 @@ Some key terminology that applies to AboutCode Toolkit tool usage:
38
35
39
36
- **Product BOM or BOM** - means a subset list of the components in a Development codebase (Software Inventory) that are Deployed on a particular Product Release (a Product Bill of Materials).
40
37
41
-
Using gen to Generate AboutCode Toolkit Files
42
-
=============================================
38
+
Using gen to Generate ABOUT file(s)
39
+
===================================
43
40
44
41
Prepare Your Software Inventory for gen Standard Field Names
@@ -217,10 +214,10 @@ For instance with this configuration, the target file will not contain the "type
217
214
- type
218
215
- temp
219
216
220
-
Run gen to Generate AboutCode Toolkit Files
221
-
-------------------------------------------
217
+
Run gen to Generate ABOUT file(s)
218
+
---------------------------------
222
219
223
-
When your software inventory is ready, you can save it as a .csv or .json file, and use it as input to run gen to generate your AboutCode Toolkit files. The official gen parameters are defined here: :ref:`reference`
220
+
When your software inventory is ready, you can save it as a .csv or .json file, and use it as input to run gen to generate ABOUT file(s). The official gen parameters are defined here: :ref:`reference`
224
221
225
222
Here is an example of a gen command:
226
223
@@ -238,7 +235,7 @@ This gen example command does the following:
238
235
239
236
- Specifies a target output directory.
240
237
241
-
Review your generated AboutCode Toolkit files to determine if they meet your requirements. Here is a simple example of a linux-redhat-7.2.ABOUT file that documents the directory /linux-redhat-7.2/ :
238
+
Review the generated ABOUT file(s) to determine if it meets your requirements. Here is a simple example of a linux-redhat-7.2.ABOUT file that documents the directory /linux-redhat-7.2/ :
242
239
243
240
.. code-block:: none
244
241
@@ -255,7 +252,7 @@ Review your generated AboutCode Toolkit files to determine if they meet your req
255
252
owner: Red Hat
256
253
redistribute: Y
257
254
258
-
You can make the appropriate changes to your input software inventory and then run gen as often as necessary to replace the generated AboutCode Toolkit files with the improved output.
255
+
You can make appropriate changes to your input software inventory and then run gen as often as necessary to replace the ABOUT file(s) with the improved version.
259
256
260
257
Using attrib to Generate a Product Attribution Notice Package
When you have generated the AboutCode Toolkit files by gen, you can then run attrib to generate your product attribution notice package. The official attrib parameters are defined here: :ref:`reference`
378
+
When you have generated ABOUT file(s) by gen, you can then run attrib to generate your product attribution notice package. The official attrib parameters are defined here: :ref:`reference`
382
379
383
380
Here is an example of a attrib command:
384
381
@@ -388,7 +385,7 @@ Note that this example attrib command does the following:
388
385
389
386
- Activates the --template option to specify a custom output template.
390
387
391
-
- Specifies the path of the AboutCode Toolkit files needed to generate the output document.
388
+
- Specifies the path of the ABOUT file(s) that use to generate the output attribution.
392
389
393
390
- Specifies the full path (include file name) of the output document to be generated.
394
391
@@ -397,12 +394,12 @@ A successful execution of attrib will create a .html (or .json depends on the te
397
394
Using inventory to Generate a Software Inventory
398
395
================================================
399
396
400
-
Generate a Software Inventory of Your Codebase from AboutCode Toolkit Files
One of the major features of the ABOUT File specification is that the .ABOUT files are very simple text files that can be created, viewed and edited using any standard text editor. Your software development and maintenance processes may require or encourage your software developers to maintain .ABOUT files and/or associated text files manually. For example, when a developer addresses a software licensing issue with a component, it is appropriate to adjust the associated AboutCode Toolkit files manually.
400
+
One of the major features of the ABOUT File specification is that the .ABOUT files are very simple text files that can be created, viewed and edited using any standard text editor. Your software development and maintenance processes may require or encourage your software developers to maintain .ABOUT files and/or associated text files manually. For example, when a developer addresses a software licensing issue with a component, it is appropriate to adjust the associated ABOUT file(s) manually.
404
401
405
-
If your organization adopts the practice of manually creating and maintaining AboutCode Toolkit files, you can easily re-create your software inventory from your codebase using inventory. The official inventory parameters are defined here: :ref:`reference`
402
+
If your organization adopts the practice of manually creating and maintaining ABOUT file(s), you can easily re-create your software inventory from your codebase using inventory. The official inventory parameters are defined here: :ref:`reference`
406
403
407
404
A successful execution of inventory will create a complete software inventory in .csv format or .json format based on defined format.
0 commit comments