Remove # in bash commands

This commit is contained in:
Megan Wilhite 2023-03-09 13:55:52 -07:00
parent 3db7d31358
commit f49a88153b
No known key found for this signature in database
GPG key ID: C69F308012C0B283

View file

@ -24,31 +24,31 @@ How to build onedir only
.. code-block:: bash
# pip install relenv
pip install relenv
#. Fetch toolchain (Only required for linux OSs)
.. code-block:: bash
# relenv toolchain fetch
relenv toolchain fetch
#. Fetch Native Python Build:
.. code-block:: bash
# relenv fetch --python=<pythonversion>
relenv fetch --python=<pythonversion>
#. Create relenv environment:
.. code-block:: bash
# relenv create --python=3.10.10 <relenv name>
relenv create --python=3.10.10 <relenv name>
#. Add Salt into onedir.
.. code-block:: bash
# path/to/<relenv-name>/bin/pip install /path/to/salt
path/to/<relenv-name>/bin/pip install /path/to/salt
How to build rpm packages
@ -57,35 +57,35 @@ How to build rpm packages
.. code-block:: bash
# yum -y install python3 python3-pip openssl git rpmdevtools rpmlint systemd-units libxcrypt-compat git
yum -y install python3 python3-pip openssl git rpmdevtools rpmlint systemd-units libxcrypt-compat git
#. (Optional) To build a specific Salt version, you will need to install tools and changelog dependencies:
.. code-block:: bash
# pip install -r requirements/static/ci/py{python_version}/tools.txt
pip install -r requirements/static/ci/py{python_version}/tools.txt
.. code-block:: bash
# pip install -r requirements/static/ci/py{python_version}/changelog.txt
pip install -r requirements/static/ci/py{python_version}/changelog.txt
#. Ensure you are in the current Salt cloned git repo:
.. code-block:: bash
# cd salt
cd salt
#. (Optional) To build a specific Salt version, run tools and set Salt version:
.. code-block:: bash
# tools changelog update-rpm <salt version>
tools changelog update-rpm <salt version>
#. Run rpmbuild in the Salt repo:
.. code-block:: bash
# rpmbuild -bb --define="_salt_src $(pwd)" $(pwd)/pkg/rpm/salt.spec
rpmbuild -bb --define="_salt_src $(pwd)" $(pwd)/pkg/rpm/salt.spec
How to build deb packages
@ -95,37 +95,37 @@ How to build deb packages
.. code-block:: bash
# apt install -y python3 python3-venv python3-pip build-essential devscripts debhelper bash-completion git
apt install -y python3 python3-venv python3-pip build-essential devscripts debhelper bash-completion git
#. (Optional) To build a specific Salt version, you will need to install tools and changelog dependencies:
.. code-block:: bash
# pip install -r requirements/static/ci/py{python_version}/tools.txt
pip install -r requirements/static/ci/py{python_version}/tools.txt
.. code-block:: bash
# pip install -r requirements/static/ci/py{python_version}/changelog.txt
pip install -r requirements/static/ci/py{python_version}/changelog.txt
#. Ensure you are in the current Salt cloned git repo.:
.. code-block:: bash
# cd salt
cd salt
#. (Optional) To build a specific Salt version, run tools and set Salt version:
.. code-block:: bash
# tools changelog update-deb <salt version>
tools changelog update-deb <salt version>
#. Add a symlink and run debuild in the Salt repo:
.. code-block:: bash
# ln -sf pkg/debian/ .
# debuild -uc -us
ln -sf pkg/debian/ .
debuild -uc -us
How to access python binary