Rename sync script for WebApp_Aktienberater
This commit is contained in:
@@ -14,8 +14,15 @@ Der Styleguide bleibt in diesem Repository die Source of Truth. Das Portal holt
|
|||||||
Beispiel:
|
Beispiel:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
./scripts/sync_styleguide_to_portal.sh \
|
./scripts/sync_styleguide_to_webapp_aktienberater.sh \
|
||||||
--portal-repo "/Users/mathias/Documents/Dokumente Chouchou/Codebases/WebApp_Aktienberater" \
|
--commit-portal
|
||||||
|
```
|
||||||
|
|
||||||
|
Optional kann der Zielpfad ueberschrieben werden:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./scripts/sync_styleguide_to_webapp_aktienberater.sh \
|
||||||
|
--portal-repo "/absoluter/pfad/zum/portalrepo" \
|
||||||
--commit-portal
|
--commit-portal
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
+3
-9
@@ -6,7 +6,7 @@ STYLEGUIDE_REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|||||||
SOURCE_CSS="$STYLEGUIDE_REPO_ROOT/styleguide.css"
|
SOURCE_CSS="$STYLEGUIDE_REPO_ROOT/styleguide.css"
|
||||||
VERSION_FILE="$STYLEGUIDE_REPO_ROOT/VERSION"
|
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_CSS_REL="public/assets/styleguide.upstream.css"
|
||||||
PORTAL_META_REL="public/assets/styleguide.upstream.meta.json"
|
PORTAL_META_REL="public/assets/styleguide.upstream.meta.json"
|
||||||
COMMIT_IN_PORTAL="false"
|
COMMIT_IN_PORTAL="false"
|
||||||
@@ -14,10 +14,10 @@ COMMIT_IN_PORTAL="false"
|
|||||||
usage() {
|
usage() {
|
||||||
cat <<USAGE
|
cat <<USAGE
|
||||||
Usage:
|
Usage:
|
||||||
$(basename "$0") --portal-repo <path> [--commit-portal]
|
$(basename "$0") [--portal-repo <path>] [--commit-portal]
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
--portal-repo <path> Absolute path to portal repository root.
|
--portal-repo <path> Optional override for portal repository root.
|
||||||
--commit-portal Create commit in portal repo after sync.
|
--commit-portal Create commit in portal repo after sync.
|
||||||
-h, --help Show this help.
|
-h, --help Show this help.
|
||||||
USAGE
|
USAGE
|
||||||
@@ -45,12 +45,6 @@ while [[ $# -gt 0 ]]; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ -z "$PORTAL_REPO_PATH" ]]; then
|
|
||||||
echo "Missing required argument: --portal-repo" >&2
|
|
||||||
usage
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ! -f "$SOURCE_CSS" ]]; then
|
if [[ ! -f "$SOURCE_CSS" ]]; then
|
||||||
echo "Source CSS not found: $SOURCE_CSS" >&2
|
echo "Source CSS not found: $SOURCE_CSS" >&2
|
||||||
exit 1
|
exit 1
|
||||||
Reference in New Issue
Block a user