projects
/
awesomized
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (from parent 1:
e087134
)
bootstrap: add arch linux
author
Michael Wallner
<mike@php.net>
Mon, 6 Jan 2020 11:07:04 +0000
(12:07 +0100)
committer
Michael Wallner
<mike@php.net>
Mon, 6 Jan 2020 11:07:26 +0000
(12:07 +0100)
bootstrap.sh
patch
|
blob
|
history
diff --git
a/bootstrap.sh
b/bootstrap.sh
index 0383c8fa7ec1f3746a6bb8755d68433ada7b0a26..25cc175a1717d53553bfc5f86064456933b2bc6c 100755
(executable)
--- a/
bootstrap.sh
+++ b/
bootstrap.sh
@@
-191,6
+191,9
@@
set_VENDOR_DISTRIBUTION ()
opensuse)
VENDOR_DISTRIBUTION='opensuse'
;;
opensuse)
VENDOR_DISTRIBUTION='opensuse'
;;
+ arch)
+ VENDOR_DISTRIBUTION='arch'
+ ;;
*)
die "attempt to set an invalid VENDOR_DISTRIBUTION=$dist"
;;
*)
die "attempt to set an invalid VENDOR_DISTRIBUTION=$dist"
;;
@@
-262,11
+265,14
@@
set_VENDOR_RELEASE ()
opensuse)
VENDOR_RELEASE="$release"
;;
opensuse)
VENDOR_RELEASE="$release"
;;
+ arch)
+ VENDOR_RELEASE=""
+ ;;
unknown)
die "attempt to set VENDOR_RELEASE without setting VENDOR_DISTRIBUTION"
;;
*)
unknown)
die "attempt to set VENDOR_RELEASE without setting VENDOR_DISTRIBUTION"
;;
*)
- die "attempt to set with an invalid VENDOR_DISTRIBUTION=$VENDOR_DISTRIBUTION"
+ die "attempt to set
VENDOR_RELEASE
with an invalid VENDOR_DISTRIBUTION=$VENDOR_DISTRIBUTION"
;;
esac
}
;;
esac
}
@@
-311,8
+317,11
@@
set_VENDOR ()
suse)
VENDOR='suse'
;;
suse)
VENDOR='suse'
;;
+ arch)
+ VENDOR='arch'
+ ;;
*)
*)
- die "An attempt was made to set an invalid VENDOR=$
_
vendor"
+ die "An attempt was made to set an invalid VENDOR=$vendor"
;;
esac
;;
esac
@@
-372,7
+381,7
@@
determine_target_platform ()
elif [[ -x '/usr/bin/lsb_release' ]]; then
local _ID="$(/usr/bin/lsb_release -s -i)"
local _VERSION="$(/usr/bin/lsb_release -s -r)"
elif [[ -x '/usr/bin/lsb_release' ]]; then
local _ID="$(/usr/bin/lsb_release -s -i)"
local _VERSION="$(/usr/bin/lsb_release -s -r)"
- set_VENDOR $_ID $_ID $_VERSION
_ID
+ set_VENDOR $_ID $_ID $_VERSION
elif [[ -f '/etc/lsb-release' ]]; then
source '/etc/lsb-release'
set_VENDOR 'canonical' $DISTRIB_ID $DISTRIB_CODENAME
elif [[ -f '/etc/lsb-release' ]]; then
source '/etc/lsb-release'
set_VENDOR 'canonical' $DISTRIB_ID $DISTRIB_CODENAME