Projet

Général

Profil

« Précédent | Suivant » 

Révision 503073c5

Ajouté par Ermal il y a environ 10 ans

Do this in the right place. Since dobuilds is just building after that the linking and scping of file will get wrong timestamp with changes i did before

Voir les différences:

builder_scripts/build_snapshots.sh
181 181
}
182 182

  
183 183
dobuilds() {
184
	# Set a common DATESTRING for the build if not set from builder_defaults.sh.
185
	# Rely on builder_defaults.sh doing the right job the first time included from this script.
186

  
187
	# NOTE: This is needed to have autoupdate detect a new version.
188
	# There is max a second difference here with DATESTRING which should not be a problem
189
	echo "$BUILTDATESTRING" > $BUILTDATESTRINGFILE
190
	echo "$DATESTRING" > $DATESTRINGFILE
191 184

  
192 185
	cd $BUILDER_SCRIPTS
193 186
	# Build images
......
195 188
	# Copy files
196 189
	copy_to_staging_iso_updates
197 190
	copy_to_staging_nanobsd '1g 2g 4g'
198

  
199
	rm $DATESTRINGFILE
200
	rm $BUILTDATESTRINGFILE
201
	# Override it here to have continuous builds with proper labels
202
	export DATESTRING=`date "+%Y%m%d-%H%M"`
203
	export BUILTDATESTRING=`date "+%a %b %d %T %Z %Y"`
204
	echo "$BUILTDATESTRING" > $BUILTDATESTRINGFILE
205
	echo "$DATESTRING" > $DATESTRINGFILE
206 191
}
207 192

  
208 193
copy_to_staging_nanobsd() {
......
437 422
		fi
438 423
		# Rotate log file (.old)
439 424
		rotate_logfile
425

  
426
		# Set a common DATESTRING for the build if not set from builder_defaults.sh.
427
		# Rely on builder_defaults.sh doing the right job the first time included from this script.
428
		# NOTE: This is needed to have autoupdate detect a new version.
429
		# Override it here to have continuous builds with proper labels
430
		rm $DATESTRINGFILE
431
		rm $BUILTDATESTRINGFILE
432
		export DATESTRING=`date "+%Y%m%d-%H%M"`
433
		export BUILTDATESTRING=`date "+%a %b %d %T %Z %Y"`
434
		echo "$BUILTDATESTRING" > $BUILTDATESTRINGFILE
435
		echo "$DATESTRING" > $DATESTRINGFILE
440 436
	done
441 437
fi

Formats disponibles : Unified diff