Skip to content

Commit

Permalink
chore: debug the makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
medcl committed Nov 13, 2024
1 parent 63e2a48 commit 06135e2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,16 @@ config:
cp docs/config.yaml config.bak
# Check the OS and set the sed command accordingly
if [ "$(uname)" == "Darwin" ]; then \
sed_command="sed -i ''"; \
sed_command="sed -i .bak"; \
else \
sed_command="sed -i"; \
fi
# Debug the sed command
echo "Using sed command: $(sed_command)"

# Replace "BRANCH" in config.yaml with the value of VERSION
$(sed_command) "s/BRANCH/$(VERSION)/g" docs/config.yaml
$(sed_command) 's/BRANCH/$(VERSION)/g' docs/config.yaml

build: config
echo $(VERSIONS)
cd docs && hugo.old --minify --theme book --destination="$(OUTPUT)/$(PRODUCT)/$(VERSION)" \
Expand Down

0 comments on commit 06135e2

Please sign in to comment.