Compare commits
2 Commits
87352936b0
...
8b25dbdca2
Author | SHA1 | Date | |
---|---|---|---|
8b25dbdca2 | |||
d1ba57009d |
6
makefile
6
makefile
@ -6,13 +6,15 @@ SONG_PDF := $(patsubst %$(SRC_EXTENSION),%.pdf,$(SONG_CHO))
|
|||||||
SONG_HTML := $(patsubst %$(SRC_EXTENSION),%.html,$(SONG_CHO))
|
SONG_HTML := $(patsubst %$(SRC_EXTENSION),%.html,$(SONG_CHO))
|
||||||
SONGBOOK := songbook.pdf
|
SONGBOOK := songbook.pdf
|
||||||
|
|
||||||
|
SHELL := $(shell echo $$SHELL)
|
||||||
|
|
||||||
.DEFAULT_GOAL := all
|
.DEFAULT_GOAL := all
|
||||||
|
|
||||||
%.pdf: %$(SRC_EXTENSION)
|
%.pdf: %$(SRC_EXTENSION)
|
||||||
chordpro --config=chordpro.json -o $@ $<
|
$(SHELL) -c 'chordpro --config=chordpro.json -o $@ $<'
|
||||||
|
|
||||||
%.html: %$(SRC_EXTENSION)
|
%.html: %$(SRC_EXTENSION)
|
||||||
chordpro --config=chordpro.json -o $@ $<
|
$(SHELL) -c 'chordpro --config=chordpro.json -o $@ $<'
|
||||||
|
|
||||||
all: $(SONG_PDF) $(SONG_HTML) $(SONGBOOK)
|
all: $(SONG_PDF) $(SONG_HTML) $(SONGBOOK)
|
||||||
|
|
||||||
|
10
readme.md
10
readme.md
@ -12,6 +12,16 @@ integrated with a shell alias:
|
|||||||
alias chordpro="docker run -ti --rm --env HOME=\$HOME --env USER=\$USER --workdir \$(pwd) --volume \$HOME:\$HOME chordpro/chordpro:latest chordpro"
|
alias chordpro="docker run -ti --rm --env HOME=\$HOME --env USER=\$USER --workdir \$(pwd) --volume \$HOME:\$HOME chordpro/chordpro:latest chordpro"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
This will not function with the included makefile, so you will have to
|
||||||
|
export this as a shell function (for example in `.bashrc`):
|
||||||
|
|
||||||
|
```
|
||||||
|
chordpro() {
|
||||||
|
docker run -ti --rm --env HOME=$HOME --env USER=$USER --workdir "$(pwd)" --volume "$HOME:$HOME" chordpro/chordpro:latest chordpro "$@"
|
||||||
|
}
|
||||||
|
export -f chordpro
|
||||||
|
```
|
||||||
|
|
||||||
[1]: https://www.chordpro.org/chordpro/chordpro-installation/
|
[1]: https://www.chordpro.org/chordpro/chordpro-installation/
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
Loading…
Reference in New Issue
Block a user