Skip to content

Commit ac68041

Browse files
mikroskclaude
andcommitted
Upload .hyp files to joska's server
Also unify udo/hcp handling. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent d6654f9 commit ac68041

5 files changed

Lines changed: 30 additions & 1 deletion

File tree

.scripts/deploy.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,8 @@ then
7575
link_file "$ARCHIVE_NAME" "${PROJECT_DIR}-${toolsuffix}-latest.${DEPLOY_ARCHIVE}"
7676
fi
7777

78+
if [ "$toolsuffix" = "mint" ]
79+
then
80+
upload_file "${INSTALL_DIR}/stguide/gemma.hyp" "${UPLOAD_DIR}/guides/gemma.hyp"
81+
fi
82+

documentation/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
gemma.hyp
2+
gemma.ref

documentation/Makefile

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,29 @@ include $(top_srcdir)/CONFIGVARS
1515
include $(top_srcdir)/RULES
1616
include $(top_srcdir)/PHONY
1717

18-
all-here:
18+
HCP ?= hcp
19+
20+
all-here: gemma.hyp
21+
22+
%.hyp: %.stg
23+
@if command -v $(HCP) >/dev/null 2>&1 && test -f $<; then \
24+
$(HCP) -o $@ $<; \
25+
else \
26+
echo "HCP not found, help file not compiled" >&2; \
27+
fi
28+
29+
install: all-here
30+
install -m 755 -d $(DESTDIR)/stguide
31+
@if test -f gemma.hyp; then \
32+
install -m 644 gemma.hyp $(DESTDIR)/stguide; \
33+
install -m 644 gemma.ref $(DESTDIR)/stguide; \
34+
else \
35+
echo "HCP not found, installing documentation source" >&2; \
36+
install -m 644 gemma.stg $(DESTDIR)/stguide; \
37+
fi
38+
39+
clean::
40+
$(RM) gemma.hyp gemma.ref
1941

2042
# default overwrites
2143

documentation/gemma.hyp

-26.3 KB
Binary file not shown.

documentation/gemma.ref

-540 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)