diff --git a/makefile b/makefile index 822afec..95739f9 100644 --- a/makefile +++ b/makefile @@ -32,6 +32,8 @@ TOOLSDIR = ${INSTALLDIR}/${TOOLS} BREW = ${TOOLSDIR}/bin/brew -v DATESTAMP = $(shell date +%Y%m%d) +FULLDATE = $(shell date) +GITREVISION = $(shell git log -1 | head -n3) # Get latest linuxbrew @@ -45,9 +47,11 @@ bootstrap-build: @echo "Make sure you have the OS development tools installed!" sudo yum -y install texinfo - ${BREW} install ${BOOTSTRAP} + ${BREW} install --verbose ${BOOTSTRAP} bootstrap-release: tidyup + echo "${FULLDATE}" > ${TOOLSDIR}/tools-builder.bootstrap.datetime + echo "${GITREVISION}" > ${TOOLSDIR}/tools-builder.bootstrap.gitrevision cd ${INSTALLDIR} && mv -v ${TOOLS} ${TOOLS}-bootstrap-${DATESTAMP} cd ${INSTALLDIR} && tar -czvf ${EXPORTDIR}/${TOOLS}-bootstrap-${DATESTAMP}.tar.gz ${TOOLS}-bootstrap-${DATESTAMP} cd ${INSTALLDIR} && mv -v ${TOOLS}-bootstrap-${DATESTAMP} ${TOOLS} @@ -58,19 +62,23 @@ full-build: @echo "Make sure the bootstrap is installed at ${TOOLSDIR}" sudo yum -y install autoconf automake patch perl texinfo - ${BREW} install ${LANGS} - ln -nfs ${INSTALLDIR}/${TOOLS}/bin/python3 ${INSTALLDIR}/${TOOLS}/bin/python - ln -nfs ${INSTALLDIR}/${TOOLS}/bin/pip3 ${INSTALLDIR}/${TOOLS}/bin/pip + ${BREW} install --verbose ${LANGS} + ln -nfs ${TOOLSDIR}/bin/python3 ${TOOLSDIR}/bin/python + ln -nfs ${TOOLSDIR}/bin/pip3 ${TOOLSDIR}/bin/pip pip install ${PIPMODULES} -U --ignore-installed - ${BREW} install ${MYTOOLS} - ln -nfs ${INSTALLDIR}/${TOOLS}/bin/vim ${INSTALLDIR}/${TOOLS}/bin/vi + ${BREW} install --verbose ${MYTOOLS} + ln -nfs ${TOOLSDIR}/bin/vim ${TOOLSDIR}/bin/vi full-release: tidyup + echo "${FULLDATE}" > ${TOOLSDIR}/tools-builder.full.datetime + echo "${GITREVISION}" > ${TOOLSDIR}/tools-builder.full.gitrevision cd ${INSTALLDIR} && mv -v ${TOOLS} ${TOOLS}-${DATESTAMP} cd ${INSTALLDIR} && tar -czvf ${EXPORTDIR}/${TOOLS}-${DATESTAMP}.tar.gz ${TOOLS}-${DATESTAMP} cd ${INSTALLDIR} && mv -v ${TOOLS}-${DATESTAMP} ${TOOLS} upgrade: + echo "${FULLDATE}" > ${TOOLSDIR}/tools-builder.upgrade.datetime + echo "${GITREVISION}" > ${TOOLSDIR}/tools-builder.upgrade.gitrevision brew update brew upgrade pip install ${PIPMODULES} -U --ignore-installed