Remove more ambiguous unicode characters.
This commit is contained in:
parent
280be84407
commit
410af8fcbf
|
|
@ -14,7 +14,7 @@ apt-get install avahi-ui-utils avahi-discover
|
||||||
#
|
#
|
||||||
# NB An important caveat is that in the current implementation, pump mode (",cpp") and compression (",lzo") will never be used for hosts located via zeroconf. Enabling compression makes the distcc client and server use more CPU time, but less network traffic. The added CPU time is insignificant for pump mode. Compression is usually economical on networks slower than 100Mbps
|
# NB An important caveat is that in the current implementation, pump mode (",cpp") and compression (",lzo") will never be used for hosts located via zeroconf. Enabling compression makes the distcc client and server use more CPU time, but less network traffic. The added CPU time is insignificant for pump mode. Compression is usually economical on networks slower than 100Mbps
|
||||||
|
|
||||||
cat > /etc/distcc/hosts <<EOF
|
cat >/etc/distcc/hosts <<EOF
|
||||||
# As described in the distcc manpage, this file can be used for a global
|
# As described in the distcc manpage, this file can be used for a global
|
||||||
# list of available distcc hosts.
|
# list of available distcc hosts.
|
||||||
#
|
#
|
||||||
|
|
@ -76,7 +76,7 @@ USE_SERVER=
|
||||||
sed -i "s,^\(SERVER=\).*,\1\"${SERVER}\"," /etc/default/dmucs
|
sed -i "s,^\(SERVER=\).*,\1\"${SERVER}\"," /etc/default/dmucs
|
||||||
sed -i "s,^\(USE_SERVER=\).*,\1\"${USE_SERVER}\"," /etc/default/dmucs
|
sed -i "s,^\(USE_SERVER=\).*,\1\"${USE_SERVER}\"," /etc/default/dmucs
|
||||||
|
|
||||||
# Create a hosts-info file in the location ‘/usr/local/share/dmucs/hosts-info’ (or, if you specified –-prefix when ‘configure’ing, in <prefix>/share/dmucs/hosts-info).
|
# Create a hosts-info file in the location '/usr/local/share/dmucs/hosts-info' (or, if you specified –-prefix when 'configure'ing, in <prefix>/share/dmucs/hosts-info).
|
||||||
|
|
||||||
#Here is a sample hosts-info file:
|
#Here is a sample hosts-info file:
|
||||||
# Format: machine number-of-cpus power-index
|
# Format: machine number-of-cpus power-index
|
||||||
|
|
@ -88,7 +88,7 @@ sed -i "s,^\(USE_SERVER=\).*,\1\"${USE_SERVER}\"," /etc/default/dmucs
|
||||||
#old-solaris-comp-3 1 2
|
#old-solaris-comp-3 1 2
|
||||||
#169.144.80.25 1 2
|
#169.144.80.25 1 2
|
||||||
|
|
||||||
cat > /etc/dmuc.conf <<EOF
|
cat >/etc/dmuc.conf <<EOF
|
||||||
# Configuration file for dmucs server.
|
# Configuration file for dmucs server.
|
||||||
#
|
#
|
||||||
# Format: machine number-of-cpus power-index
|
# Format: machine number-of-cpus power-index
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ apt-get install avahi-daemon avahi-utils libnss-mdns
|
||||||
#
|
#
|
||||||
# NB An important caveat is that in the current implementation, pump mode (",cpp") and compression (",lzo") will never be used for hosts located via zeroconf. Enabling compression makes the distcc client and server use more CPU time, but less network traffic. The added CPU time is insignificant for pump mode. Compression is usually economical on networks slower than 100Mbps
|
# NB An important caveat is that in the current implementation, pump mode (",cpp") and compression (",lzo") will never be used for hosts located via zeroconf. Enabling compression makes the distcc client and server use more CPU time, but less network traffic. The added CPU time is insignificant for pump mode. Compression is usually economical on networks slower than 100Mbps
|
||||||
|
|
||||||
cat > /etc/distcc/hosts <<EOF
|
cat >/etc/distcc/hosts <<EOF
|
||||||
# As described in the distcc manpage, this file can be used for a global
|
# As described in the distcc manpage, this file can be used for a global
|
||||||
# list of available distcc hosts.
|
# list of available distcc hosts.
|
||||||
#
|
#
|
||||||
|
|
@ -77,7 +77,7 @@ USE_SERVER=
|
||||||
sed -i "s,^\(SERVER=\).*,\1\"${SERVER}\"," /etc/default/dmucs
|
sed -i "s,^\(SERVER=\).*,\1\"${SERVER}\"," /etc/default/dmucs
|
||||||
sed -i "s,^\(USE_SERVER=\).*,\1\"${USE_SERVER}\"," /etc/default/dmucs
|
sed -i "s,^\(USE_SERVER=\).*,\1\"${USE_SERVER}\"," /etc/default/dmucs
|
||||||
|
|
||||||
# Create a hosts-info file in the location ‘/usr/local/share/dmucs/hosts-info’ (or, if you specified –-prefix when ‘configure’ing, in <prefix>/share/dmucs/hosts-info).
|
# Create a hosts-info file in the location '/usr/local/share/dmucs/hosts-info' (or, if you specified –-prefix when 'configure'ing, in <prefix>/share/dmucs/hosts-info).
|
||||||
|
|
||||||
#Here is a sample hosts-info file:
|
#Here is a sample hosts-info file:
|
||||||
# Format: machine number-of-cpus power-index
|
# Format: machine number-of-cpus power-index
|
||||||
|
|
@ -89,13 +89,9 @@ sed -i "s,^\(USE_SERVER=\).*,\1\"${USE_SERVER}\"," /etc/default/dmucs
|
||||||
#old-solaris-comp-3 1 2
|
#old-solaris-comp-3 1 2
|
||||||
#169.144.80.25 1 2
|
#169.144.80.25 1 2
|
||||||
|
|
||||||
cat > /etc/dmuc.conf <<EOF
|
cat >/etc/dmuc.conf <<EOF
|
||||||
# Configuration file for dmucs server.
|
# Configuration file for dmucs server.
|
||||||
#
|
#
|
||||||
# Format: machine number-of-cpus power-index
|
# Format: machine number-of-cpus power-index
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ RSS_FEED="https://github.com/${USER}/${PROJECT}/releases.atom"
|
||||||
echo ${RSS_FEED}
|
echo ${RSS_FEED}
|
||||||
|
|
||||||
spt-cache udo apt-get install python3-requests python3-click python3-pbr \
|
spt-cache udo apt-get install python3-requests python3-click python3-pbr \
|
||||||
python3-arrow python3-tabulate python3-yaml
|
python3-arrow python3-tabulate python3-yaml
|
||||||
|
|
||||||
echo "mkdir -p "${BUILD_DIR}" && cd "${BUILD_DIR}" || exit "
|
echo "mkdir -p "${BUILD_DIR}" && cd "${BUILD_DIR}" || exit "
|
||||||
mkdir -p "${BUILD_DIR}" && cd "${BUILD_DIR}" || exit
|
mkdir -p "${BUILD_DIR}" && cd "${BUILD_DIR}" || exit
|
||||||
|
|
@ -39,7 +39,7 @@ cat <<-EOF | sudo tee doc-pak/README >/dev/null
|
||||||
pycodestyle
|
pycodestyle
|
||||||
pycodestyle is a simple tool to warn about violations of the PEP8 style guide. It produces messages for any divergence from the style guide.
|
pycodestyle is a simple tool to warn about violations of the PEP8 style guide. It produces messages for any divergence from the style guide.
|
||||||
|
|
||||||
Prospector’s concept of strictness turns off various warnings depending on the strictness level. By default, several PEP8 errors will be suppressed. To adjust this without adjusting the strictness of other tools, you have some options:
|
Prospector's concept of strictness turns off various warnings depending on the strictness level. By default, several PEP8 errors will be suppressed. To adjust this without adjusting the strictness of other tools, you have some options:
|
||||||
|
|
||||||
# turn off pep8 checking completely:
|
# turn off pep8 checking completely:
|
||||||
prospector --no-style-warnings
|
prospector --no-style-warnings
|
||||||
|
|
@ -58,12 +58,12 @@ cat <<-EOF | sudo tee doc-pak/README >/dev/null
|
||||||
McCabe or cyclomatic complexity is a measurement of how many paths there are in a given function or method. It measures how complicated your functions are, and warns if they reach a certain threshold. Methods that are too complex are prone to logic errors, and should be refactored to a series of smaller methods.
|
McCabe or cyclomatic complexity is a measurement of how many paths there are in a given function or method. It measures how complicated your functions are, and warns if they reach a certain threshold. Methods that are too complex are prone to logic errors, and should be refactored to a series of smaller methods.
|
||||||
|
|
||||||
Dodgy
|
Dodgy
|
||||||
Dodgy is a very simple tool designed to find ‘dodgy’ things which should not be in a public project, such as secret keys, passwords, AWS tokens or source control diffs.
|
Dodgy is a very simple tool designed to find 'dodgy' things which should not be in a public project, such as secret keys, passwords, AWS tokens or source control diffs.
|
||||||
|
|
||||||
Pydocstyle
|
Pydocstyle
|
||||||
Pydocstyle is a simple tool to warn about violations of the PEP257 Docstring Conventions. It produces messages for any divergence from the style guide.
|
Pydocstyle is a simple tool to warn about violations of the PEP257 Docstring Conventions. It produces messages for any divergence from the style guide.
|
||||||
|
|
||||||
This tool is currently considered experimental due to some bugs in its ability to parse code. For example, modules that contain an __all__ could end up producing bogus error messages if the __all__ isn’t formatted exactly as pydocstyle expects it.
|
This tool is currently considered experimental due to some bugs in its ability to parse code. For example, modules that contain an __all__ could end up producing bogus error messages if the __all__ isn't formatted exactly as pydocstyle expects it.
|
||||||
|
|
||||||
It will not run by default, and must be enabled explicitly (via --with-tool pep257 or in a profile) or implicitly (using the --doc-warnings flag).
|
It will not run by default, and must be enabled explicitly (via --with-tool pep257 or in a profile) or implicitly (using the --doc-warnings flag).
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,11 +31,11 @@ sources_dir="$R/tmp/kernels/rockpro64" # where the sources outside the chroot ar
|
||||||
sources_dest="/scratch" # where to mount the sources you wish to build in the chroot.
|
sources_dest="/scratch" # where to mount the sources you wish to build in the chroot.
|
||||||
|
|
||||||
conf_print_schroot() {
|
conf_print_schroot() {
|
||||||
fn conf_print_schroot
|
fn conf_print_schroot
|
||||||
req=(OLD_STABLE STABLE TESTING UNSTABLE)
|
req=(OLD_STABLE STABLE TESTING UNSTABLE)
|
||||||
ckreq || return 1
|
ckreq || return 1
|
||||||
|
|
||||||
cat <<-EOF
|
cat <<-EOF
|
||||||
# schroot chroot definitions.
|
# schroot chroot definitions.
|
||||||
# See schroot.conf(5) for complete documentation of the file format.
|
# See schroot.conf(5) for complete documentation of the file format.
|
||||||
#
|
#
|
||||||
|
|
@ -67,11 +67,11 @@ conf_print_schroot() {
|
||||||
# See: https://wiki.ubuntu.com/SimpleSbuild
|
# See: https://wiki.ubuntu.com/SimpleSbuild
|
||||||
# cp /usr/share/doc/sbuild/examples/example.sbuildrc ~/.sbuildrc
|
# cp /usr/share/doc/sbuild/examples/example.sbuildrc ~/.sbuildrc
|
||||||
conf_print_sbuildrc() {
|
conf_print_sbuildrc() {
|
||||||
fn conf_print_sbuildrc
|
fn conf_print_sbuildrc
|
||||||
req=(release)
|
req=(release)
|
||||||
ckreq || return 1
|
ckreq || return 1
|
||||||
|
|
||||||
cat <<-EOF | sudo tee ~/.sbuildrc
|
cat <<-EOF | sudo tee ~/.sbuildrc
|
||||||
# sbuild configuration file
|
# sbuild configuration file
|
||||||
#
|
#
|
||||||
# See sbuild.conf(5) for complete documentation of the file format.
|
# See sbuild.conf(5) for complete documentation of the file format.
|
||||||
|
|
@ -108,11 +108,11 @@ conf_print_sbuildrc() {
|
||||||
|
|
||||||
# Create ~/.mk-sbuild.rc:
|
# Create ~/.mk-sbuild.rc:
|
||||||
conf_print_mk_sbuild_rc() {
|
conf_print_mk_sbuild_rc() {
|
||||||
fn conf_print_mk_sbuild_rc
|
fn conf_print_mk_sbuild_rc
|
||||||
req=(apt_proxy)
|
req=(apt_proxy)
|
||||||
ckreq || return 1
|
ckreq || return 1
|
||||||
|
|
||||||
cat <<-EOF
|
cat <<-EOF
|
||||||
SCHROOT_CONF_SUFFIX="source-root-users=root,sbuild,admin
|
SCHROOT_CONF_SUFFIX="source-root-users=root,sbuild,admin
|
||||||
source-root-groups=root,sbuild,admin
|
source-root-groups=root,sbuild,admin
|
||||||
preserve-environment=true"
|
preserve-environment=true"
|
||||||
|
|
@ -132,11 +132,11 @@ conf_print_mk_sbuild_rc() {
|
||||||
mkdir -p /etc/schroot/${schroot_config}
|
mkdir -p /etc/schroot/${schroot_config}
|
||||||
|
|
||||||
conf_print_chroot_config() {
|
conf_print_chroot_config() {
|
||||||
fn conf_print_chroot_config
|
fn conf_print_chroot_config
|
||||||
req=(schoot_config sources_dir sources_dest)
|
req=(schoot_config sources_dir sources_dest)
|
||||||
ckreq || return 1
|
ckreq || return 1
|
||||||
|
|
||||||
cat <<-EOF | sudo tee /etc/schroot/${schroot_config}/copyfiles
|
cat <<-EOF | sudo tee /etc/schroot/${schroot_config}/copyfiles
|
||||||
# Files to copy into the chroot from the host system.
|
# Files to copy into the chroot from the host system.
|
||||||
#
|
#
|
||||||
# <source-and-destination>[ <destination>]
|
# <source-and-destination>[ <destination>]
|
||||||
|
|
@ -146,7 +146,7 @@ conf_print_chroot_config() {
|
||||||
~/.Xauthority
|
~/.Xauthority
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat <<-EOF | sudo tee /etc/schroot/${schroot_config}/fstab
|
cat <<-EOF | sudo tee /etc/schroot/${schroot_config}/fstab
|
||||||
# fstab: static file system information for chroots.
|
# fstab: static file system information for chroots.
|
||||||
# Note that the mount point will be prefixed by the chroot path
|
# Note that the mount point will be prefixed by the chroot path
|
||||||
# (CHROOT_PATH)
|
# (CHROOT_PATH)
|
||||||
|
|
@ -169,7 +169,7 @@ conf_print_chroot_config() {
|
||||||
#/run/shm /run/shm none rw,bind 0 0
|
#/run/shm /run/shm none rw,bind 0 0
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat <<-EOF | sudo tee /etc/schroot/${schroot_config}/nssdatabases
|
cat <<-EOF | sudo tee /etc/schroot/${schroot_config}/nssdatabases
|
||||||
# System databases to copy into the chroot from the host system.
|
# System databases to copy into the chroot from the host system.
|
||||||
#
|
#
|
||||||
# <database name>
|
# <database name>
|
||||||
|
|
@ -183,7 +183,7 @@ conf_print_chroot_config() {
|
||||||
hosts
|
hosts
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat <<-EOF | sudo tee /etc/schroot/${schroot_config}/config
|
cat <<-EOF | sudo tee /etc/schroot/${schroot_config}/config
|
||||||
# Filesystems to mount inside the chroot.
|
# Filesystems to mount inside the chroot.
|
||||||
FSTAB="/etc/schroot/custom/fstab"
|
FSTAB="/etc/schroot/custom/fstab"
|
||||||
|
|
||||||
|
|
@ -223,16 +223,16 @@ conf_print_chroot_config() {
|
||||||
# EOF
|
# EOF
|
||||||
|
|
||||||
conf_print_chroot_d() {
|
conf_print_chroot_d() {
|
||||||
fn conf_print_chroot_d
|
fn conf_print_chroot_d
|
||||||
req=(strapdir arch release schroot_config)
|
req=(strapdir arch release schroot_config)
|
||||||
ckreq || return 1
|
ckreq || return 1
|
||||||
|
|
||||||
cat <<-EOF | sudo tee -a /etc/schroot/schroot.d/${release}_${arch}
|
cat <<-EOF | sudo tee -a /etc/schroot/schroot.d/${release}_${arch}
|
||||||
[${release}_${arch}]
|
[${release}_${arch}]
|
||||||
description=${release} (${arch}) for devuan arm-sdk
|
description=${release} (${arch}) for devuan arm-sdk
|
||||||
type=directory
|
type=directory
|
||||||
directory=${strapdir}
|
directory=${strapdir}
|
||||||
union-type=overlay # ‘aufs’, ‘overlay’ and ‘unionfs’
|
union-type=overlay # 'aufs', 'overlay' and 'unionfs'
|
||||||
command-prefix=eatmydata,ccache
|
command-prefix=eatmydata,ccache
|
||||||
users=default
|
users=default
|
||||||
source-users=default
|
source-users=default
|
||||||
|
|
@ -248,13 +248,13 @@ sudo zfs snapshot ${zfs_snapshot}@initial
|
||||||
sudo zfs create ${zfs_snapshot}
|
sudo zfs create ${zfs_snapshot}
|
||||||
|
|
||||||
sudo sbuild-createchroot \
|
sudo sbuild-createchroot \
|
||||||
--arch=${arch} \
|
--arch=${arch} \
|
||||||
--include=debhelper,eatmydata,ccache \
|
--include=debhelper,eatmydata,ccache \
|
||||||
--chroot-mode=schroot \
|
--chroot-mode=schroot \
|
||||||
--components=main contrib non-free \
|
--components=main contrib non-free \
|
||||||
${release} \
|
${release} \
|
||||||
${zfs_snapshot} \
|
${zfs_snapshot} \
|
||||||
${mirror}
|
${mirror}
|
||||||
|
|
||||||
# cat <<-EOF | sudo tee /etc/schroot/chroot.d/sid-zfs-snapshot
|
# cat <<-EOF | sudo tee /etc/schroot/chroot.d/sid-zfs-snapshot
|
||||||
# [sid-zfs-snapshot]
|
# [sid-zfs-snapshot]
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# Install zsh-async if it’s not present
|
# Install zsh-async if it's not present
|
||||||
if [[ ! -a ~/.zsh-async ]]; then
|
if [[ ! -a ~/.zsh-async ]]; then
|
||||||
git clone -b ‘v1.5.2’ git@github.com:mafredri/zsh-async ~/.zsh-async
|
git clone -b 'v1.5.2' git@github.com:mafredri/zsh-async ~/.zsh-async
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source ~/.zsh-async/async.zsh
|
source ~/.zsh-async/async.zsh
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue