detached 6af0a61

Makefile RawHistoryFolder

1.PHONY: check check-syntax check-shellcheck clean help build release
2
3# Default target
4help:
5	@echo "archup - Makefile targets:"
6	@echo ""
7	@echo "  make build          - Build archup binary"
8	@echo "  make release        - Release archup via goreleaser (uses gh CLI token)"
9	@echo "  make check          - Run all checks (syntax + shellcheck)"
10	@echo "  make check-syntax   - Check shell script syntax with bash -n"
11	@echo "  make check-shellcheck - Run shellcheck linting"
12	@echo "  make clean          - Remove generated files"
13	@echo ""
14
15# Build archup binary
16build:
17	@echo "Building archup..."
18	goreleaser build --snapshot --clean --single-target
19	@echo "✓ Build complete: ./dist/archup_linux_amd64_v1/archup"
20
21# Release archup (requires GITHUB_TOKEN or gh CLI)
22release:
23	@echo "Releasing archup..."
24	GITHUB_TOKEN=$$(gh auth token) goreleaser release --clean
25	@echo "✓ Release complete"
26
27# Run all checks
28check: check-syntax check-shellcheck
29	@echo ""
30	@echo "✓ All checks passed!"
31
32# Check syntax with bash -n
33check-syntax:
34	@echo "========================================="
35	@echo "Checking shell script syntax..."
36	@echo "========================================="
37	@for script in install.sh install/mandatory/post-boot/*.sh; do \
38		if [ -f "$$script" ]; then \
39			echo "Checking: $$script"; \
40			bash -n "$$script" || exit 1; \
41		fi \
42	done
43	@echo "✓ Syntax check passed"
44
45# Run shellcheck
46check-shellcheck:
47	@echo ""
48	@echo "========================================="
49	@echo "Running shellcheck..."
50	@echo "========================================="
51	@if ! command -v shellcheck >/dev/null 2>&1; then \
52		echo "⚠ shellcheck not found, skipping..."; \
53		echo "Install with: sudo pacman -S shellcheck"; \
54		exit 0; \
55	fi
56	@for script in install.sh install/mandatory/post-boot/*.sh; do \
57		if [ -f "$$script" ]; then \
58			echo ""; \
59			echo "Checking: $$script"; \
60			shellcheck --exclude=SC1090,SC1091,SC2086,SC2004,SC2059,SC2129,SC2155 "$$script" || exit 1; \
61		fi \
62	done
63	@echo ""
64	@echo "✓ shellcheck passed"
65
66# Clean generated files
67clean:
68	@echo "Cleaning generated files..."
69	@rm -f /var/log/archup-install.log
70	@echo "✓ Clean complete"

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 0

    ↑↓ moveenter openesc close