Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/common-functions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-06-16 10:25:18 +0200
committerErich Eckner <git@eckner.net>2017-06-16 10:25:18 +0200
commite84ed03bf4fd591ee1b38bda92521274f62af59e (patch)
treeb1b5e144d92ae50284a3c5a281a0af95e5583527 /bin/common-functions
parent1dcb91614f41848b3da01113fe3356b548304bc3 (diff)
mangle TODOs and comments
Diffstat (limited to 'bin/common-functions')
-rwxr-xr-xbin/common-functions11
1 files changed, 7 insertions, 4 deletions
diff --git a/bin/common-functions b/bin/common-functions
index 2eeca5e..911a580 100755
--- a/bin/common-functions
+++ b/bin/common-functions
@@ -3,7 +3,11 @@
# contains functions used by more than one script
# TODO:
-# maybe source PKGBUILD instead of 'makepkg --printsrcinfo' and 'mksrcinfo'?
+
+# maybe source PKGBUILD instead of 'makepkg --printsrcinfo' and
+# 'mksrcinfo'?
+
+# mangle $arch in PKBUILDs to contain i486, i586, i686
# find_pkgbuild repository package
# find the PKGBUILD of $package from $repository
@@ -53,9 +57,6 @@ find_pkgbuild() {
# apply customizations to a package
# (to be executed in the package's directory)
-# TODO:
-# mangle $arch in PKBUILDs to contain i486, i586, i686
-
apply_package_customizations() {
if [ ! -f 'PKGBUILD' ]; then
>&2 echo 'PKGBUILD not found.'
@@ -315,6 +316,7 @@ remove_old_package_versions() {
# wait_some_time $minimum $diff
# wait between minimum and minimum+diff seconds (diff defaults to 30)
+
wait_some_time() {
local minimum=$1
local diff=$2
@@ -335,6 +337,7 @@ wait_some_time() {
# str_to_regex $string
# escape dots for use in regex
+
str_to_regex() {
echo "$1" | \
sed 's|\.|\\.|g'