mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-01-22 01:30:35 -05:00
manual: html: fix unrecognized --parent(s) option on BSD/Darwin
Replace --parents (specific to GNU cp) with separate mkdir -p command. See https://www.gnu.org/software/coreutils/manual/html_node/cp-invocation.html#index-_002d_002dparents Change-Id: I80dd5e513300dc921a59227aff9454ddb5766671
This commit is contained in:
parent
fe11a04579
commit
3ee26f761b
1 changed files with 7 additions and 2 deletions
|
|
@ -16,8 +16,13 @@ buildmanual: rockbox-build.tex pdf
|
|||
buildhtml: rockbox-build.tex
|
||||
@mkdir -p $(OBJDIR)/html
|
||||
@$(HTLATEX) $(DOCUMENT) "$(HTOPTS1),$(SPLITHTML)" $(HTOPTS2) $(HTOPTS3) </dev/null
|
||||
@cp --parent `cat $(OBJDIR)/html/*.html | sed -e '/\.js/!d;s/.*\"\(.*\.js\)\".*/\1/g;/</d' | uniq` $(OBJDIR)/html
|
||||
@cp --parent `cat $(OBJDIR)/html/*.html | sed -e '/[pj][np]g/!d;s/.*\"\(.*\.[pj][np]g\)\".*/\1/g;/</d'` $(OBJDIR)/html
|
||||
# (GNU cp --parents option not available on BSD/Darwin)
|
||||
@JS_FILES=`cat $(OBJDIR)/html/*.html | sed -e '/\.js/!d;s/.*\"\(.*\.js\)\".*/\1/g;/</d' | uniq`; \
|
||||
IMG_FILES=`cat $(OBJDIR)/html/*.html | sed -e '/[pj][np]g/!d;s/.*\"\(.*\.[pj][np]g\)\".*/\1/g;/</d'`; \
|
||||
for f in $$JS_FILES $$IMG_FILES; do \
|
||||
mkdir -p $(OBJDIR)/html/`dirname $$f`; \
|
||||
cp $$f $(OBJDIR)/html/$$f; \
|
||||
done
|
||||
@cp -r $(OBJDIR)/html $(OBJDIR)/../
|
||||
|
||||
buildtxt: buildhtml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue