Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mysql-functions9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/mysql-functions b/bin/mysql-functions
index 5acf85c..2635318 100755
--- a/bin/mysql-functions
+++ b/bin/mysql-functions
@@ -6,6 +6,15 @@
mysql_command='mysql buildmaster -e'
+# base64_encode_each encode each line of stdin with base64
+
+base64_encode_each() {
+ parallel -N1 -l1 --pipe '
+ base64 -w0
+ printf "\n"
+ '
+}
+
# mysql_add_package_source $pkgbase $git_revision $mod_git_revision $upstream_package_repository
# shellcheck disable=SC2016,SC2086