Skip to content

Commit

Permalink
fix: check the build config
Browse files Browse the repository at this point in the history
  • Loading branch information
medcl committed Nov 13, 2024
1 parent 06135e2 commit cc07cda
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,11 @@ BRANCH_FILE := $(OUTPUT)/branch_list.txt

default: build

#linux only
config:
cp docs/config.yaml config.bak
# Check the OS and set the sed command accordingly
if [ "$(uname)" == "Darwin" ]; then \
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 -i 's/BRANCH/$(VERSION)/g' docs/config.yaml

build: config
echo $(VERSIONS)
Expand Down

0 comments on commit cc07cda

Please sign in to comment.