added patch download subc to makefile
parent
536ae16532
commit
f2a9ea21ba
22
Makefile
22
Makefile
|
@ -10,27 +10,35 @@ ifndef project_root
|
||||||
|
|
||||||
else
|
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:
|
dirs:
|
||||||
${dir_make}/dirs.sh
|
${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:
|
install_rex:
|
||||||
${dir_make}/install_rex.sh
|
${dir_make}/install_rex.sh
|
||||||
|
|
||||||
|
# installs the versions designed for this run
|
||||||
download_sources:
|
download_sources:
|
||||||
${dir_make}/download_sources.sh
|
${dir_make}/download_sources.sh
|
||||||
|
|
||||||
|
# ""
|
||||||
|
download_patches:
|
||||||
|
${dir_make}/download_patches.sh
|
||||||
|
|
||||||
|
# kicks off rex
|
||||||
build_stage1:
|
build_stage1:
|
||||||
sudo /usr/bin/env -i bash -c ". ./project_config.sh && ${dir_make}/build_stage1.sh"
|
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
|
# end dependency loading block
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -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"
|
|
@ -15,7 +15,7 @@ HORSE=$(cat <<'EOH'
|
||||||
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿⠇⠀⠀⠀⡾⠁⠀⠀⣠⡿⠃⠀⠀⠀⠀⠀⠀⠸⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢿⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿⠇⠀⠀⠀⡾⠁⠀⠀⣠⡿⠃⠀⠀⠀⠀⠀⠀⠸⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢿⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
||||||
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⣿⠀⠀⠀⡸⠃⠀⢀⣴⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⣿⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⣷⣶⣶⣦⣤⣀⡀⠀⠀⠀⠀⠀⠀
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⣿⠀⠀⠀⡸⠃⠀⢀⣴⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⣿⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⣷⣶⣶⣦⣤⣀⡀⠀⠀⠀⠀⠀⠀
|
||||||
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢰⣿⠇⠀⠀⠀⠃⢀⣴⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⣿⣿⣿⣿⣿⣿⣶⣤⡀⠀⠀
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢰⣿⠇⠀⠀⠀⠃⢀⣴⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⣿⣿⣿⣿⣿⣿⣶⣤⡀⠀⠀
|
||||||
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⠏⠀⠀⠀⠀⣰⡟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⡏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣧⠙⠻⣿⣿⣿⣿⣿⣿⣦⡀
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⠏⠀⠀⠀⠀⣰⡟⠁⠀⠀⠀ ⠀⠀⠀⣼⡏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣧⠙⠻⣿⣿⣿⣿⣿⣿⣦⡀
|
||||||
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⡏⠀⠀⢀⡖⢰⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⡟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⠟⠀⠀⠀⢸⣿⠀⠀⠈⢿⣿⣿⣿⣿⣿⡿
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⡏⠀⠀⢀⡖⢰⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⡟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⠟⠀⠀⠀⢸⣿⠀⠀⠈⢿⣿⣿⣿⣿⣿⡿
|
||||||
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢿⡇⠀⠀⣼⠁⠼⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣴⠟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡴⠋⠀⠀⠀⠀⣼⡇⠀⠀⣠⣾⣿⣿⣿⣿⠟⠀
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢿⡇⠀⠀⣼⠁⠼⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣴⠟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡴⠋⠀⠀⠀⠀⣼⡇⠀⠀⣠⣾⣿⣿⣿⣿⠟⠀
|
||||||
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡄⠘⣇⠀⠀⢻⡄⢠⡄⠀⠀⠀⠀⠀⠀⠀⠀⢀⣤⡴⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⠟⠁⠀⠀⠀⢀⣼⠏⠀⣠⣾⣿⣿⡿⣿⡿⠁⠀⠀
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡄⠘⣇⠀⠀⢻⡄⢠⡄⠀⠀⠀⠀⠀⠀⠀⠀⢀⣤⡴⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⠟⠁⠀⠀⠀⢀⣼⠏⠀⣠⣾⣿⣿⡿⣿⡿⠁⠀⠀
|
||||||
|
|
Loading…
Reference in New Issue