From b4fa9ff479f4d60cead217e8ee1ddd63b79884e0 Mon Sep 17 00:00:00 2001 From: Bruce Potter Date: Thu, 7 Nov 2013 12:09:43 -0500 Subject: [PATCH] automatically save previous bld --- buildcore.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/buildcore.sh b/buildcore.sh index b3d2e7887..7548391a1 100755 --- a/buildcore.sh +++ b/buildcore.sh @@ -430,9 +430,12 @@ else verboseflag="" fi echo "Creating $TARNAME ..." +if [[ -e $TARNAME ]]; then + mkdir -p previous + mv -f $TARNAME previous +fi if [ "$OSNAME" = "AIX" ]; then tar $verboseflag -hcf ${TARNAME%.gz} $XCATCORE - rm -f $TARNAME gzip ${TARNAME%.gz} else tar $verboseflag -hjcf $TARNAME $XCATCORE