vkdoom_m/tools/update-subtrees.sh
Rachael Alexanderson 8d15a41f1b
- update windows update-subtrees.cmd to instead point to the bash script, it will execute git-bash to run it
- always use absolute url's for subtrees, don't lock ourselves to github
2025-08-12 04:36:55 -04:00

16 lines
439 B
Bash
Executable file

#!/bin/bash
pushd "$(git rev-parse --show-toplevel)" >/dev/null
pull() {
if [[ "${1}" == "${2}" || "${1}" == "all" ]]
then
echo "fetching ${2}"
git subtree pull --prefix="${3}" "${4}" "${5}" --squash || exit
else
echo "${2} not specified, skipping"
fi
}
pull "$1" 'zwidget' 'libraries/ZWidget' 'https://github.com/dpjudas/ZWidget' 'master'
pull "$1" 'zmusic' 'libraries/ZMusic' 'https://github.com/ZDoom/ZMusic' 'master'