Skip to content

Instantly share code, notes, and snippets.

@hr3lxphr6j
Last active March 23, 2020 14:42
Show Gist options
  • Save hr3lxphr6j/1d7e9da4e5999797c34621f2becec0ee to your computer and use it in GitHub Desktop.
Save hr3lxphr6j/1d7e9da4e5999797c34621f2becec0ee to your computer and use it in GitHub Desktop.
#!/bin/bash
PYTHON=python.exe
SCRIPT=${1:-'C:\Users\chigusa\AppData\Local\Programs\VapourSynth\vsrepo\vsrepo.py'}
WIN_PACKAGE_JSON="$($PYTHON "$SCRIPT" paths | grep Definitions | awk '{print $2}' | tr -d '\r\n')"
PACKAGE_JSON="$(wslpath "$WIN_PACKAGE_JSON" | awk '{$1=$1;print}')"
oldifs=$IFS
IFS=$'\n'
$PYTHON $SCRIPT update
for f in $(cat $PACKAGE_JSON | jq -r '.packages[].name'); do
echo "Install $f..."
$PYTHON $SCRIPT install "$f"
done
IFS=$oldifs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment