layouts
All repositories: gitoria
1.8 KB
#!/usr/bin/env bash# usage.sh — which app carries which shared piece, and is its copy the same as the source?# Sources: components → components.hybriel.worldapi.org/components/<name>/<name>.hl,# theme → layouts.worldapi.org/theme/, tokens → layouts.worldapi.org/shared/tokens.hl,# md-editor.js (old JS editor, to be retired) → worldapi-components/md-editor.js.# States: same = byte-identical to the source · DIFFERS = copy is behind/ahead or patched · fork = declared own copy# (listed in docs/usage.md "Forks"). Run: tools/usage.sh [projects dir] — exit 1 if any copy DIFFERS.P=${1:-$(cd "$(dirname "$0")/../.." && pwd)}LIB=$P/components.hybriel.worldapi.org/components; LAY=$P/layouts.worldapi.orgAPPS="tickets ident gitoria notes calendar tracker layouts"FORKS=" calendar:month-view "bad=0cmpf() { if cmp -s "$1" "$2"; then echo same; else echo DIFFERS; fi; }for a in $APPS; dod=$P/$a.worldapi.org; line=""for c in $(ls "$LIB" | grep -v '\.hl$'); dof=$(find "$d/components" -path '*/showcase' -prune -o -name "$c.hl" -print 2>/dev/null | head -1)[ -z "$f" ] && continues=$(cmpf "$f" "$LIB/$c/$c.hl"); [[ $FORKS == *" $a:$c "* ]] && s=fork[ $s = DIFFERS ] && bad=1; line+=" $c=$s"doneif [ -d "$d/theme" ] && [ $a != layouts ]; thenif diff -rq "$d/theme" "$LAY/theme" >/dev/null; then line+=" theme=same"; else line+=" theme=DIFFERS"; bad=1; fifi[ -f "$d/shared/tokens.hl" ] && { s=$(cmpf "$d/shared/tokens.hl" "$LAY/shared/tokens.hl"); [ $s = DIFFERS ] && bad=1; line+=" tokens=$s"; }[ -f "$d/shared/md-editor.js" ] && { s=$(cmpf "$d/shared/md-editor.js" "$P/worldapi-components/md-editor.js"); line+=" md-editor.js(old)=$s"; }echo "$a:$line"doneecho "sources: components.hybriel $(git -C "$P/components.hybriel.worldapi.org" log -1 --format=%h) · layouts $(git -C "$LAY" log -1 --format=%h)"exit $bad
Branches
Latest commits
- 6385ff8eRecord LY7 style formatting proof and review statusmre
- 0100f51etracker-demo: format Style with nested rules and bare mediamre
- 5f82554enotes-demo: format Style with nested rules and bare mediamre
- 3dc27d78mail-demo: format Style with nested rules and bare mediamre
- cf9648afhome: format Style with nested rules and bare mediamre
- 846a6242user-menu: format Style with nested rules and bare mediamre
- 4d58708cthree-pane: format Style with nested rules and bare mediamre
- 0bbfc553main-menu: format Style with nested rules and bare mediamre
- 7755199dlist-first: format Style with nested rules and bare mediamre
- 35199303content-first: format Style with nested rules and bare mediamre
- 00f6e698app-sidebar: format Style with nested rules and bare mediamre
- bb2f29c9app-header: format Style with nested rules and bare mediamre
- 3aca2d7fSync components from 8176eb1 with reviewed nested stylesmre
- 87e4003dRe-vendor layouts to Hybriel set day35mre
- d8628cfflayouts: a startup error prints its message before exit 1 (hybriel#247)mre
- 180fd76elayouts: MdEditor from components 59704ce (text on the clipboard always pastes, a file manager copy still attaches; pipe rows; empty Table-button table; tickets#49, notes#5)mre
- a3eda8afRe-vendor Hybriel master 7a684920 (binary 74ab3715): plugins whole, startup fault exits 1; files-upload gate 340/0mre
- 025d5880WIP re-vendor Hybriel set-day27b (a9712e61, master f5ff97bf): plugins whole, startup fault exits 1; NOT deployable: files-upload emit refused (see .scratch/rv27-upload)mre
- 42183a71Merge sb3-standby: layouts deploys through its standbymre
- 408de1f2layouts: no jobs switch needed in the standbymre