From bfcfcb267136484321aa6610ca8732b94c242b80 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Sun, 3 Sep 2023 23:14:49 -0700 Subject: [PATCH] symlinks for 8 --- sync/beta-release-sync-to-staging.sh | 9 +++++++++ sync/lh-release-sync-to-staging.sh | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/sync/beta-release-sync-to-staging.sh b/sync/beta-release-sync-to-staging.sh index 5e1aa90..57159f9 100644 --- a/sync/beta-release-sync-to-staging.sh +++ b/sync/beta-release-sync-to-staging.sh @@ -77,3 +77,12 @@ for ARCH in "${ARCHES[@]}"; do treeinfoModder "${ARCH}" treeinfoSaver "${ARCH}" done + +# Change Symlink if required +echo "Setting symlink to ${REV}" +pushd "${STAGING_ROOT}/${CATEGORY_STUB}" || exit +/bin/rm "${STAGING_ROOT}/${CATEGORY_STUB}/8-BETA" +ln -sr "${STAGING_ROOT}/${CATEGORY_STUB}/${REV}" 8-BETA +echo "Attempting hard link" +perform_hardlink "${STAGING_ROOT}/${CATEGORY_STUB}/${REV}" +popd || exit diff --git a/sync/lh-release-sync-to-staging.sh b/sync/lh-release-sync-to-staging.sh index 31be96a..b092deb 100644 --- a/sync/lh-release-sync-to-staging.sh +++ b/sync/lh-release-sync-to-staging.sh @@ -77,3 +77,12 @@ for ARCH in "${ARCHES[@]}"; do treeinfoModder "${ARCH}" treeinfoSaver "${ARCH}" done + +# Change Symlink if required +echo "Setting symlink to ${REV}" +pushd "${STAGING_ROOT}/${CATEGORY_STUB}" || exit +/bin/rm "${STAGING_ROOT}/${CATEGORY_STUB}/8-LookAhead" +ln -sr "${STAGING_ROOT}/${CATEGORY_STUB}/${REV}" 8-LookAhead +echo "Attempting hard link" +perform_hardlink "${STAGING_ROOT}/${CATEGORY_STUB}/${REV}" +popd || exit