Cleanup inconsistent whitespace in debian/util.sh

We use two space indentation in this file and no tabs as per the
mode-line header.
This commit is contained in:
Travis Cross 2016-05-10 21:46:54 +00:00
parent dad2cd19a9
commit 9dbe81b50f

26
debian/util.sh vendored
View File

@ -245,7 +245,7 @@ create_dsc () {
} }
fmt_debug_hook () { fmt_debug_hook () {
cat <<'EOF' cat <<'EOF'
#!/bin/bash #!/bin/bash
export debian_chroot="cow" export debian_chroot="cow"
cd /tmp/buildd/*/debian/.. cd /tmp/buildd/*/debian/..
@ -290,24 +290,24 @@ build_debs () {
done done
shift $(($OPTIND-1)) shift $(($OPTIND-1))
if [ "$custom_sources_file" == "/etc/apt/sources.list" ]; then if [ "$custom_sources_file" == "/etc/apt/sources.list" ]; then
# If you are using the system sources, then it is reasonable that you expect to use all of the supplementary repos too # If you are using the system sources, then it is reasonable that you expect to use all of the supplementary repos too
cat /etc/apt/sources.list > /tmp/fs.sources.list cat /etc/apt/sources.list > /tmp/fs.sources.list
if [ "$(ls -A /etc/apt/sources.list.d)" ]; then if [ "$(ls -A /etc/apt/sources.list.d)" ]; then
for X in /etc/apt/sources.list.d/*; do cat $X >> /tmp/fs.sources.list; done for X in /etc/apt/sources.list.d/*; do cat $X >> /tmp/fs.sources.list; done
fi fi
custom_sources_file="/tmp/fs.sources.list" custom_sources_file="/tmp/fs.sources.list"
apt-key exportall > "/tmp/fs.asc" apt-key exportall > "/tmp/fs.asc"
custom_keyring="/tmp/fs.asc" custom_keyring="/tmp/fs.asc"
fi fi
if [ "$custom_sources_file" == "" ]; then if [ "$custom_sources_file" == "" ]; then
# Caller has explicitly set the custom sources file to empty string. They must intend to not use additional mirrors. # Caller has explicitly set the custom sources file to empty string. They must intend to not use additional mirrors.
use_custom_sources=false use_custom_sources=false
fi fi
if [[ "$custom_source_file" == "/tmp/fs.sources.list" && ! -e "/tmp/fs.sources.list" ]]; then if [[ "$custom_source_file" == "/tmp/fs.sources.list" && ! -e "/tmp/fs.sources.list" ]]; then
echo "deb http://files.freeswitch.org/repo/deb/debian/ jessie main" >> "/tmp/fs.sources.list" echo "deb http://files.freeswitch.org/repo/deb/debian/ jessie main" >> "/tmp/fs.sources.list"
fi fi
if [[ "$custom_keyring" == "/tmp/fs.asc" && ! -r "/tmp/fs.asc" ]]; then if [[ "$custom_keyring" == "/tmp/fs.asc" && ! -r "/tmp/fs.asc" ]]; then
cat << EOF > "/tmp/fs.asc" cat << EOF > "/tmp/fs.asc"
-----BEGIN PGP PUBLIC KEY BLOCK----- -----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.12 (GNU/Linux) Version: GnuPG v1.4.12 (GNU/Linux)