Skip to content

Commit fea9646

Browse files
author
Ivan Zoratti
authored
Update README.rst
1 parent 71b88f3 commit fea9646

File tree

1 file changed

+30
-25
lines changed

1 file changed

+30
-25
lines changed

README.rst

Lines changed: 30 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,14 @@ Internal Structure
1818
The repository contains the following set of files:
1919

2020
- Files named with **make_** prefix, such as ``make_deb``, are the shell scripts used to build the package. The scripts accept the architecture to build as argument (currently *x86* and *arm*).
21-
- The **packages** folder contains the list package types to build. At the moment, the only package type we provide is *Debian*
21+
- The **packages** folder contains the list package types to build. At the moment, the only package type we provide is *Debian*.
22+
2223
- Inside the *packages/Debian* folder, we have the **architecture** folders, plus a *common* folder containing files that are common to all the architectures. The architectures that we provide at the moment are *armhf* and *x86_64*.
24+
2325
- Inside the architecture folder we have the DEBIAN folder, which contains all the Debian-based files, i.e. control, pre/post inst/rm, needed for the creation of the package.
26+
2427
- After the first build, the *packages/Debian* will also contain a **build** folder. This folder contains a copy of what will be used to build the package (in a directory with the same name of the package) and the package itself.
28+
2529
- In the *build* folder, folders and files that have a sequence number are a previous package build.
2630

2731

@@ -48,41 +52,42 @@ Finally, run the ``make_deb`` command:
4852
Building Complete.
4953
$
5054
51-
The result will be:
55+
The result will be:
5256

5357
.. code-block:: console
5458
5559
$ ls -l packages/Debian/build/
56-
total 564
57-
drwxrwxr-x 4 foglamp foglamp 4096 Mar 23 17:35 foglamp-1.2-x86_64
58-
-rw-r--r-- 1 foglamp foglamp 572742 Mar 23 17:35 foglamp-1.2-x86_64.deb
60+
total 564
61+
drwxrwxr-x 4 foglamp foglamp 4096 Mar 23 17:35 foglamp-1.2-x86_64
62+
-rw-r--r-- 1 foglamp foglamp 572742 Mar 23 17:35 foglamp-1.2-x86_64.deb
5963
$
6064
6165
If you execute the ``make_deb`` command again, you will see:
6266

6367
.. code-block:: console
6468
6569
$ ./make_deb x86
66-
The package root directory is : /home/foglamp/foglamp-pkg
67-
The FogLAMP directory is : /usr/local/foglamp
68-
The FogLAMP version is : 1.2
69-
The Package will be built in : /home/foglamp/foglamp-pkg/packages/Debian/build
70-
The architecture is set as : x86_64
71-
The package name is : foglamp-1.2-x86_64
72-
73-
Saving the old working environment as foglamp-1.2-x86_64.0001
74-
Populating the package...Done.
75-
Saving the old package as foglamp-1.2-x86_64.deb.0001
76-
Building the new package...
77-
dpkg-deb: building package 'foglamp' in 'foglamp-1.2-x86_64.deb'.
78-
Building Complete.
79-
$ ls -l packages/Debian/build/
80-
total 1128
81-
drwxrwxr-x 4 foglamp foglamp 4096 Mar 23 17:53 foglamp-1.2-x86_64
82-
drwxrwxr-x 4 foglamp foglamp 4096 Mar 23 17:35 foglamp-1.2-x86_64.0001
83-
-rw-r--r-- 1 foglamp foglamp 573080 Mar 23 17:54 foglamp-1.2-x86_64.deb
84-
-rw-r--r-- 1 foglamp foglamp 572742 Mar 23 17:35 foglamp-1.2-x86_64.deb.0001
85-
$
70+
The package root directory is : /home/foglamp/foglamp-pkg
71+
The FogLAMP directory is : /usr/local/foglamp
72+
The FogLAMP version is : 1.2
73+
The Package will be built in : /home/foglamp/foglamp-pkg/packages/Debian/build
74+
The architecture is set as : x86_64
75+
The package name is : foglamp-1.2-x86_64
76+
77+
Saving the old working environment as foglamp-1.2-x86_64.0001
78+
Populating the package...Done.
79+
Saving the old package as foglamp-1.2-x86_64.deb.0001
80+
Building the new package...
81+
dpkg-deb: building package 'foglamp' in 'foglamp-1.2-x86_64.deb'.
82+
Building Complete.
83+
$
84+
$ ls -l packages/Debian/build/
85+
total 1128
86+
drwxrwxr-x 4 foglamp foglamp 4096 Mar 23 17:53 foglamp-1.2-x86_64
87+
drwxrwxr-x 4 foglamp foglamp 4096 Mar 23 17:35 foglamp-1.2-x86_64.0001
88+
-rw-r--r-- 1 foglamp foglamp 573080 Mar 23 17:54 foglamp-1.2-x86_64.deb
89+
-rw-r--r-- 1 foglamp foglamp 572742 Mar 23 17:35 foglamp-1.2-x86_64.deb.0001
90+
$
8691
8792
... where the previous build is now marked with the suffix *.0001*.
8893

0 commit comments

Comments
 (0)