added patch download subc to makefile

master
phanes 2023-02-18 20:35:25 -05:00
parent 536ae16532
commit f2a9ea21ba
3 changed files with 46 additions and 8 deletions

View File

@ -10,27 +10,35 @@ ifndef project_root
else
#download_patches:
# ${make_dir}/download_patches.sh
# these need run in the following order:
#verify_patches:
# ${make_dir}/verify_patches.sh
# create the directory structures necessary to run the make
dirs:
${dir_make}/dirs.sh
# installs the latest version of rex
# installs the latest version of rex from master branch
# will later be tied to a release tag
install_rex:
${dir_make}/install_rex.sh
# installs the versions designed for this run
download_sources:
${dir_make}/download_sources.sh
# ""
download_patches:
${dir_make}/download_patches.sh
# kicks off rex
build_stage1:
sudo /usr/bin/env -i bash -c ". ./project_config.sh && ${dir_make}/build_stage1.sh"
# example:
# make dirs
# make install_rex
# make download_sources
# make download_patches
# make build_stage1
# end dependency loading block
endif

View File

@ -0,0 +1,30 @@
#!/usr/bin/env bash
function echofail() {
echo "FAILED: $1"
exit 1
}
wget \
-q \
--show-progress \
--continue \
-R "index.html*" \
-r \
-np \
-nH \
--cut-dirs=2 \
-P ${dir_patches} \
--directory-prefix=${dir_patches} \
https://storage.darkhorselinux.org/sources/upstream_patches/ \
|| echofail "Downloading patches..."
echo "Validating source downloads..."
pushd ${dir_patches} 1>/dev/null 2>/dev/null
md5sum --quiet -c "md5sums.txt" || echofail "Validation failed. Redownload."
err=$?
popd 1>/dev/null 2>/dev/null
echo "Finished with exit code $err"

View File

@ -15,7 +15,7 @@ HORSE=$(cat <<'EOH'
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿⠇⠀⠀⠀⡾⠁⠀⠀⣠⡿⠃⠀⠀⠀⠀⠀⠀⠸⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢿⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⣿⠀⠀⠀⡸⠃⠀⢀⣴⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⣿⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⣷⣶⣶⣦⣤⣀⡀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢰⣿⠇⠀⠀⠀⠃⢀⣴⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⣿⣿⣿⣿⣿⣿⣶⣤⡀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⠏⠀⠀⠀⠀⣰⡟⠁⠀⠀⠀⠀⠀⠀⣼⡏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣧⠙⠻⣿⣿⣿⣿⣿⣿⣦⡀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⠏⠀⠀⠀⠀⣰⡟⠁⠀⠀⠀ ⠀⠀⠀⣼⡏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣧⠙⠻⣿⣿⣿⣿⣿⣿⣦⡀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⡏⠀⠀⢀⡖⢰⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⡟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⠟⠀⠀⠀⢸⣿⠀⠀⠈⢿⣿⣿⣿⣿⣿⡿
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢿⡇⠀⠀⣼⠁⠼⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣴⠟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡴⠋⠀⠀⠀⠀⣼⡇⠀⠀⣠⣾⣿⣿⣿⣿⠟⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡄⠘⣇⠀⠀⢻⡄⢠⡄⠀⠀⠀⠀⠀⠀⠀⠀⢀⣤⡴⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⠟⠁⠀⠀⠀⢀⣼⠏⠀⣠⣾⣿⣿⡿⣿⡿⠁⠀⠀