[scorched3d] 02/03: remove bashisms

Phil Morrell emorrp1-guest at moszumanska.debian.org
Thu Mar 3 00:03:55 UTC 2016


This is an automated email from the git hooks/post-receive script.

emorrp1-guest pushed a commit to branch repack_uscan
in repository scorched3d.

commit f11018abca0cac6bb06a159f96afd4b0d9dde3f1
Author: Phil Morrell <debian at emorrp1.name>
Date:   Mon Feb 29 09:00:41 2016 +0000

    remove bashisms
---
 debian/repack | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/debian/repack b/debian/repack
index 519ac19..b2514ed 100755
--- a/debian/repack
+++ b/debian/repack
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 #
 # Convert the pristine upstream source to the Debian upstream source.
 #
@@ -17,7 +17,7 @@ working_dir="$(mktemp -d -t)"
 
 exit_sigspecs="ERR EXIT SIGTERM SIGHUP SIGINT SIGQUIT"
 
-function cleanup_exit() {
+cleanup_exit() {
     exit_status=$?
     trap - $exit_sigspecs
 
@@ -35,13 +35,13 @@ upstream_version=$(printf "${release_version}" \
 upstream_dirname="${package_name}-${upstream_version}.orig"
 upstream_tarball_basename="${package_name}_${upstream_version}.orig"
 
-function extract_tarball_to_working_dir() {
+extract_tarball_to_working_dir() {
     # Extract the specified tarball to the program's working directory.
     local tarball="$1"
     tar -xzf "${tarball}" --directory "${working_dir}"
 }
 
-function archive_working_dirname_to_tarball() {
+archive_working_dirname_to_tarball() {
     # Archive the specified directory, relative to the working directory,
     # to a new tarball of the specified name.
     local source_dirname="$1"
@@ -49,7 +49,7 @@ function archive_working_dirname_to_tarball() {
     GZIP="--best" tar --directory "${working_dir}" -czf "${tarball}" "${source_dirname}"
 }
 
-function usage() {
+usage() {
     local progname=$(basename $0)
     printf "$progname --upstream-version VERSION FILENAME\n"
 }
@@ -83,7 +83,7 @@ if [ -f "${program_dir}/repack.local" ] ; then
     printf "Found repack.local, sourcing it from ${repack_dir}:\n"
     readonly cwd=$(pwd)
     cd "${repack_dir}"
-    source "${program_dir}/repack.local"
+    . "${program_dir}/repack.local"
     cd "${cwd}"
 fi
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/scorched3d.git



More information about the Pkg-games-commits mailing list