summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-06-16 10:23:58 +0200
committerErich Eckner <git@eckner.net>2017-06-16 10:23:58 +0200
commiteb7164898f731c2c50e849048ce2f4c561017db5 (patch)
treeb9981da3793fd90caf25118498727a973c1e2082 /bin
parent0eaf07b89956169ff54bc9f5aea0dd9fef92a8d6 (diff)
downloadbuilder-eb7164898f731c2c50e849048ce2f4c561017db5.tar.xz
bin/common-functions: put each "local" on a separate line
Diffstat (limited to 'bin')
-rwxr-xr-xbin/common-functions12
1 files changed, 9 insertions, 3 deletions
diff --git a/bin/common-functions b/bin/common-functions
index fe8ae42..2eeca5e 100755
--- a/bin/common-functions
+++ b/bin/common-functions
@@ -10,7 +10,10 @@
find_pkgbuild() {
- local PKGBUILD='' repo file package_path
+ local PKGBUILD=''
+ local repo
+ local file
+ local package_path
if [ -f "${repo_paths__archlinux32}/$2/$1/PKGBUILD" ]; then
# If this package has some modification,
@@ -60,7 +63,8 @@ apply_package_customizations() {
exit 1
fi
- local repo package
+ local repo
+ local package
repo="$(pwd)"
package="${repo%/*/*}"
@@ -157,7 +161,9 @@ generate_package_metadata() {
local git_revision="$2"
local mod_git_revision="$3"
local repository="$4"
- local file_prefix file PKGBUILD
+ local file_prefix
+ local file
+ local PKGBUILD
if [ $# -eq 1 ]; then
# second form