jamal-fuma / autoscaffold

Common M4 files for autotools projects
Other
0 stars 0 forks source link

Support SOURCE_DATE_EPOCH specification OOB #4

Open jamal-fuma opened 8 years ago

jamal-fuma commented 8 years ago

https://reproducible-builds.org/specs/source-date-epoch/

jamal-fuma commented 5 years ago

export BUILD_NUMBER="$(date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y-%m-%d)" export PRODUCT_NAME="$( [ -f ${REPO}/name.txt ] || echo basename "${REPO}" > ${REPO}/name.txt; cat ${REPO}/name.txt)" export PRODUCT_PVER="$( [ -f ${REPO}/version.txt ] || echo '1' > ${REPO}/version.txt; cat ${REPO}/version.txt)"