Skip to content

Commit

Permalink
Remove linux in Makefile and public/ dir from git
Browse files Browse the repository at this point in the history
  • Loading branch information
ibokuri committed Mar 3, 2024
1 parent 4824121 commit f6e052b
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 122 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Install Packages
run: |
brew install scdoc
brew install scdoc nroff gsed
- name: Build
run: make build
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
man/
public/
15 changes: 0 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ SCD_FILES := $(wildcard $(SCD_DIR)/*.scd)
ROFF_FILES := $(patsubst $(SCD_DIR)/%.scd,$(ROFF_DIR)/%.roff,$(SCD_FILES))
HTML_FILES := $(patsubst $(ROFF_DIR)/%.roff,$(OUTPUT_DIR)/%.html,$(ROFF_FILES))

UNAME_S := $(shell uname -s)

.PHONY: all clean roff build

all: build
Expand All @@ -35,18 +33,6 @@ $(OUTPUT_DIR)/%.html: $(ROFF_DIR)/%.roff | $(OUTPUT_DIR)
@echo $@
@cp $(HTML_DIR)/index.html $(OUTPUT_DIR)/
@cp $(CSS_DIR)/style.css $(OUTPUT_DIR)/
ifeq ($(UNAME_S),Linux)
@nroff -man $< \
| perl -pe 's/\x1b\[1m(.*?)\x1b\[(22|0)m/<b>\1<\/b>/gs' \
| sed -r -e 's/ +<\/b>/<\/b> /g' \
| sed -r -e 's/(,|\.|\?|\w) +(\w|<|[0-9])/\1 \2/g' \
| perl -pe 's/\x1b\[4m(.*?)\x1b\[24m/<u>\1<\/u>/gs' \
| sed -r -e 's/<u>DANH\.COMPUTER<\/u>\(7\)/<a href="https:\/\/danh.computer">DANH.COMPUTER(7)<\/a>/g' \
| sed -r -e '/\{\{content\}\}/{r /dev/stdin' -e 'd;}' "$(TEMPLATE_PAGE)" \
| sed -r -e 's/\{\{title\}\}/${filename}/' \
> $@
endif
ifeq ($(UNAME_S),Darwin)
@nroff -man $< \
| perl -pe 's/\x1b\[1m(.*?)\x1b\[(22|0)m/<b>\1<\/b>/gs' \
| gsed -E -e 's/ +<\/b>/<\/b> /g' \
Expand All @@ -56,7 +42,6 @@ ifeq ($(UNAME_S),Darwin)
| gsed -E -e '/\{\{content\}\}/{r /dev/stdin' -e 'd;}' "$(TEMPLATE_PAGE)" \
| gsed -E -e 's/\{\{title\}\}/${filename}/' \
> $@
endif

$(ROFF_DIR):
@mkdir -p $(ROFF_DIR)
Expand Down
21 changes: 0 additions & 21 deletions public/index.html

This file was deleted.

9 changes: 0 additions & 9 deletions public/style.css

This file was deleted.

76 changes: 0 additions & 76 deletions public/test.html

This file was deleted.

0 comments on commit f6e052b

Please sign in to comment.