build/download: support distfiles fetch

This commit is contained in:
Franco Fichtner 2019-12-12 14:19:38 +01:00
parent 56ed118538
commit df6a9a0da0
1 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
# Copyright (c) 2018 Franco Fichtner <franco@opnsense.org>
# Copyright (c) 2018-2019 Franco Fichtner <franco@opnsense.org>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
@ -47,6 +47,9 @@ for ARG in ${@}; do
sh ./clean.sh ${ARG}
download ${ARG} ${SETSDIR} "${ARG}-*"
;;
distfiles)
sh ./clean.sh ${ARG}
download ${ARG} ${SETSDIR} "${ARG}-*"
log)
# one log only, do not clear
download ${ARG} ${LOGSDIR} "${PRODUCT_VERSION}-*"