From a4514b735c3a4d5059ab9f728a4dbc3a2d2f6dfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maty=C3=A1=C5=A1=20Kopp?= Date: Wed, 29 May 2024 19:36:02 +0200 Subject: [PATCH] use git as a source for unix_install folder #3 --- admin/prereq.sh | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/admin/prereq.sh b/admin/prereq.sh index 2fbf1aff..4d648d66 100755 --- a/admin/prereq.sh +++ b/admin/prereq.sh @@ -184,16 +184,10 @@ else echo "Done" fi -## create or update unix_install directory -if [ -d "$TRED_UNIXINST_DIR" ]; then - cd $TRED_UNIXINST_DIR - echo "Updating unix_install checkout directory" - svn up >> $LOG - echo "Done" -else - echo "No directory unix_install found, creating a new one and making a fresh checkout" - mkdir $TRED_UNIXINST_DIR 2>/dev/null - svn co $TRED_SVN_REPO/devel/unix_install $TRED_UNIXINST_DIR >> $LOG - echo "Done" -fi - +## create unix_install directory +echo "remove and create unix_install checkout directory" +rm -rf "$TRED_UNIXINST_DIR" +git -C ${TRED_SRC_DIR}/devel/unix_install archive --output $TRED_UNIXINST_DIR.zip HEAD >> $LOG +unzip ${TRED_UNIXINST_DIR}.zip -d ${TRED_UNIXINST_DIR} >> $LOG && \ +rm ${TRED_UNIXINST_DIR}.zip && \ +echo "Done" \ No newline at end of file