Commit e0a92972 authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Debian: allow to re-run the pool_buildinfos script to be re-run for a specifc year

parent 93765e00
Loading
Loading
Loading
Loading
+14 −6
Original line number Diff line number Diff line
@@ -134,13 +134,18 @@ do_day(){
}

# this takes a long time and is not run by the jenkins job but manually
loop_through_all(){
	for YEAR in $(seq 2016 $(date -u +%Y)) ; do
loop_through_year(){
	for MONTH in $(seq -w 01 12) ; do
		for DAY in $(seq -w 01 31) ; do
			do_day
		done
	done
}

# this takes a long time and is not run by the jenkins job but manually
loop_through_all(){
	for YEAR in $(seq 2016 $(date -u +%Y)) ; do
		loop_through_year
	done
}

@@ -199,9 +204,12 @@ exit_clean() {
# main
#

if [ -n "$1" ] && [ -z "$2" ] ; then
if [ "$1" = "all" ] && [ -z "$2" ] ; then
	# only run manually: do all days
	loop_through_all
elif [ -n "$1" ] && [ -z "$2" ] ; then
	YEAR=$1
	loop_through_year
elif [ -n "$1" ] && [ -n "$2" ] && [ -n "$3" ] ; then
	# only run manually: do a specific day only
	YEAR=$1