This commit is contained in:
tim
2024-06-11 18:34:27 -04:00
parent 6d983944a0
commit ce75bd703e
2 changed files with 9 additions and 6 deletions
+4 -2
View File
@@ -26,11 +26,13 @@ function get_colout() {(
)}
function get_parallel() {(
echo "get_parallel..." >&2
# local mirror=mirror.msys2.org
local mirror=mirror.umd.edu
echo "get_parallel... mirror=$mirror" >&2
set -Euo pipefail
local archive=$( wget-sha256 \
3f9a262cdb7ba9b21c4aa2d6d12e6ccacbaf6106085fdaafd3b8a063e15ea782 \
https://mirror.msys2.org/msys/x86_64/parallel-20231122-1-any.pkg.tar.zst \
https://$mirror/msys/x86_64/parallel-20231122-1-any.pkg.tar.zst \
.
) && tar -C bin --strip-components=2 -vxf $archive usr/bin/parallel && {
mkdir -pv bin/parallel-home/tmp/sshlogin/`hostname`/
+5 -4
View File
@@ -1,14 +1,15 @@
#!/bin/bash
if ! cygpath . >/dev/null 2>/dev/null ; then
test ! -v DEBUG || echo "[$BASH_SOURCE] emulating cygpath $OSTYPE" >&2
test ! -v DEBUG || echo "[$BASH_SOURCE] emulating cygpath $OSTYPE 1=$1 2=$2" >&2
function cygpath() {
case "$1" in
-pm) echo "'$1' / -pm not yet implemented... '$2'" >&2 ; exit 89 ;;
-*p*) echo "'$1' / -p not yet implemented... '$2'" >&2 ; exit 90 ;;
-pm) echo "'$1' / -pm not yet implemented... '$2'" >&2 ; return 89 ;;
-ua) shift ; readlink -f "$1" ;;
-*p*) echo "'$1' / -p not yet implemented... '$2'" >&2 ; return 90 ;;
-*a*) shift ; readlink -f "$1" ;;
-*m*) shift ; readlink -m "$1" ;;
-*) echo "'$1' not yet implemented... '$2'" >&2 ; exit 90 ;;
-*) echo "'$1' not yet implemented... '$2'" >&2 ; return 99 ;;
*) readlink "$1" ;;
esac
}