From 4a446e8cbfa58b5227d2e711514cb188660bb723 Mon Sep 17 00:00:00 2001 From: r00t Date: Tue, 30 Jun 2015 20:01:54 -0400 Subject: [PATCH] cleaning up git cleanup --- lib/09-yo_dj.func.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/09-yo_dj.func.sh b/lib/09-yo_dj.func.sh index d3e6d8e..59ff696 100644 --- a/lib/09-yo_dj.func.sh +++ b/lib/09-yo_dj.func.sh @@ -280,9 +280,10 @@ EOF ## Build the mini-ISO ## echo "Now generating the iPXE images; please wait..." cd ${BASEDIR}/src/ipxe/src + git clean -xdf > /dev/null 2>&1 git reset --hard HEAD >> "${LOGFILE}.${FUNCNAME}" 2>&1 git checkout master >> "${LOGFILE}.${FUNCNAME}" 2>&1 - git pull > /dev/null >> "${LOGFILE}.${FUNCNAME}" 2>&1 + git pull >> "${LOGFILE}.${FUNCNAME}" 2>&1 git checkout master >> "${LOGFILE}.${FUNCNAME}" 2>&1 for i in $(find ${BASEDIR}/src/ipxe_local/patches/ -type f -iname "*.patch" -printf '%P\n'); do @@ -290,13 +291,15 @@ EOF done #make everything EMBED="${BASEDIR}/src/ipxe_local/EMBED" >> "${LOGFILE}.${FUNCNAME}" 2>&1 make bin/ipxe.eiso EMBED="${BASEDIR}/src/ipxe_local/EMBED" >> "${LOGFILE}.${FUNCNAME}" 2>&1 - #make bin/ipxe.eiso EMBED="${BASEDIR}/src/ipxe_local/EMBED" >> "${LOGFILE}.${FUNCNAME}" 2>&1 + make bin/ipxe.usb EMBED="${BASEDIR}/src/ipxe_local/EMBED" >> "${LOGFILE}.${FUNCNAME}" 2>&1 # Change this to USB-only... - make all EMBED="${BASEDIR}/src/ipxe_local/EMBED" >> "${LOGFILE}.${FUNCNAME}" 2>&1 + #make all EMBED="${BASEDIR}/src/ipxe_local/EMBED" >> "${LOGFILE}.${FUNCNAME}" 2>&1 mv -f ${BASEDIR}/src/ipxe/src/bin/ipxe.usb ${ISODIR}/${USBFILENAME} mv -f ${BASEDIR}/src/ipxe/src/bin/ipxe.eiso ${ISODIR}/${MINIFILENAME} make clean > /dev/null 2>&1 - git reset --hard HEAD > /dev/null 2>&1 + git checkout . > /dev/null 2>&1 + git reset > /dev/null 2>&1 + #git reset --hard HEAD > /dev/null 2>&1 echo #isohybrid ${ISOFILENAME}