Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts/makepkg.sh.in
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2015-05-13 15:44:01 +1000
committerAllan McRae <allan@archlinux.org>2015-05-19 23:43:00 +1000
commit15b6cecdd5353d1ce8d8a9747ea9e55477ceb3fb (patch)
tree118f7462f06430d00edf2f16b20b7350ead55ec4 /scripts/makepkg.sh.in
parent8ab106eb9b21263941a4329eb89709f35b2bd178 (diff)
libmakepkg: extract more utility functions
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r--scripts/makepkg.sh.in30
1 files changed, 0 insertions, 30 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 2d64997a..f88ec3cc 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1415,14 +1415,6 @@ error_function() {
exit 2 # $E_BUILD_FAILED
}
-cd_safe() {
- if ! cd "$1"; then
- error "$(gettext "Failed to change to directory %s")" "$1"
- plain "$(gettext "Aborting...")"
- exit 1
- fi
-}
-
source_safe() {
shopt -u extglob
if ! source "$@"; then
@@ -2380,28 +2372,6 @@ print_all_package_names() {
done
}
-# Canonicalize a directory path if it exists
-canonicalize_path() {
- local path="$1";
-
- if [[ -d $path ]]; then
- (
- cd_safe "$path"
- pwd -P
- )
- else
- printf "%s\n" "$path"
- fi
-}
-
-dir_is_empty() {
- (
- shopt -s dotglob nullglob
- files=("$1"/*)
- (( ${#files} == 0 ))
- )
-}
-
m4_include(library/parseopts.sh)
usage() {