Move google stuff to its own folder

This commit is contained in:
Christian Nieves
2022-08-15 17:06:33 +00:00
parent 8258bcc14c
commit 4cbe074ae0
11 changed files with 51 additions and 0 deletions

11
google/hgshort/tobashargs.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
HGSHORT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-${(%):-%x}}}")" && pwd)"
export HGSHORT_BASH_CMD="$1"
export HGSHORT_BASH_ARGS="/tmp/HGSHORT-bash-args-$$.sh"
shift
$HGSHORT_DIR/tobashargs.py "$@" > $HGSHORT_BASH_ARGS
xargs --null --arg-file=$HGSHORT_BASH_ARGS $HGSHORT_BASH_CMD
\rm $HGSHORT_BASH_ARGS # don't call rm to avoid alias loop