From 6d20ae0a013057da37ebe10ba40954c81af38f4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Gla=CC=88ser?= Date: Mon, 18 May 2026 18:16:19 +0200 Subject: [PATCH] Rename sync script for WebApp_Aktienberater --- docs/portal_sync_flow.md | 11 +++++++++-- ...sh => sync_styleguide_to_webapp_aktienberater.sh} | 12 +++--------- 2 files changed, 12 insertions(+), 11 deletions(-) rename scripts/{sync_styleguide_to_portal.sh => sync_styleguide_to_webapp_aktienberater.sh} (90%) diff --git a/docs/portal_sync_flow.md b/docs/portal_sync_flow.md index 99f2d43..104cd2d 100644 --- a/docs/portal_sync_flow.md +++ b/docs/portal_sync_flow.md @@ -14,8 +14,15 @@ Der Styleguide bleibt in diesem Repository die Source of Truth. Das Portal holt Beispiel: ```bash -./scripts/sync_styleguide_to_portal.sh \ - --portal-repo "/Users/mathias/Documents/Dokumente Chouchou/Codebases/WebApp_Aktienberater" \ +./scripts/sync_styleguide_to_webapp_aktienberater.sh \ + --commit-portal +``` + +Optional kann der Zielpfad ueberschrieben werden: + +```bash +./scripts/sync_styleguide_to_webapp_aktienberater.sh \ + --portal-repo "/absoluter/pfad/zum/portalrepo" \ --commit-portal ``` diff --git a/scripts/sync_styleguide_to_portal.sh b/scripts/sync_styleguide_to_webapp_aktienberater.sh similarity index 90% rename from scripts/sync_styleguide_to_portal.sh rename to scripts/sync_styleguide_to_webapp_aktienberater.sh index a37f4d5..f908144 100755 --- a/scripts/sync_styleguide_to_portal.sh +++ b/scripts/sync_styleguide_to_webapp_aktienberater.sh @@ -6,7 +6,7 @@ STYLEGUIDE_REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)" SOURCE_CSS="$STYLEGUIDE_REPO_ROOT/styleguide.css" VERSION_FILE="$STYLEGUIDE_REPO_ROOT/VERSION" -PORTAL_REPO_PATH="" +PORTAL_REPO_PATH="/Users/mathias/Documents/Dokumente Chouchou/Codebases/WebApp_Aktienberater" PORTAL_CSS_REL="public/assets/styleguide.upstream.css" PORTAL_META_REL="public/assets/styleguide.upstream.meta.json" COMMIT_IN_PORTAL="false" @@ -14,10 +14,10 @@ COMMIT_IN_PORTAL="false" usage() { cat < [--commit-portal] + $(basename "$0") [--portal-repo ] [--commit-portal] Options: - --portal-repo Absolute path to portal repository root. + --portal-repo Optional override for portal repository root. --commit-portal Create commit in portal repo after sync. -h, --help Show this help. USAGE @@ -45,12 +45,6 @@ while [[ $# -gt 0 ]]; do esac done -if [[ -z "$PORTAL_REPO_PATH" ]]; then - echo "Missing required argument: --portal-repo" >&2 - usage - exit 1 -fi - if [[ ! -f "$SOURCE_CSS" ]]; then echo "Source CSS not found: $SOURCE_CSS" >&2 exit 1