Marlin 2.0 for Flying Bear 4S/5
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
372 B

#!/usr/bin/env bash
#
# bump_date
#
# Bump the Distribution Date in Version.h
#
VERSION_FILE=Marlin/src/inc/Version.h
SED=$(which gsed || which sed)
DIST=$( date +"%Y-%m-%d" )
eval "${SED} -E -i 's/(#define +STRING_DISTRIBUTION_DATE) .*$/\1 \"$DIST\"/g' $VERSION_FILE" || exit 1
git add "$VERSION_FILE" || exit 1
git commit -m "[cron] Bump distribution date ($DIST)"