Skip to content

Commit

Permalink
Normalize all the line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
hirotnk committed May 10, 2020
1 parent 84e8498 commit 53c0bc3
Show file tree
Hide file tree
Showing 20 changed files with 3,885 additions and 3,885 deletions.
58 changes: 29 additions & 29 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
ASSET_CHAPTERS = $(shell find chapters -type f)

all: chapters/contributors.txt beam-book.pdf index.html

chapters/contributors.txt: .git
./bin/gitlog.sh $@

beam-book.pdf: chapters/opcodes_doc.asciidoc book.asciidoc chapters/contributors.txt $(ASSET_CHAPTERS)
asciidoctor-pdf -r ./style/custom-pdf-converter.rb -r asciidoctor-diagram -r ./style/custom-admonition-block.rb -a config=./style/ditaa.cfg --doctype=book -a pdf-style=./style/pdf-theme.yml book.asciidoc -o $@

index.html: $(ASSET_CHAPTERS)
cp -r images site
asciidoctor -r asciidoctor-diagram -r ./style/custom-admonition-block.rb -a config=style/ditaa.cfg --backend=html5 --doctype=book -o site/index.html book.asciidoc --trace
rsync -R code/*/*.png site

code/book/ebin/generate_op_doc.beam: code/book/src/generate_op_doc.erl
erlc -o $(dir $@) $<

chapters/opcodes_doc.asciidoc: genop.tab code/book/ebin/generate_op_doc.beam
erl -pa code/book/ebin/ -noshell -s generate_op_doc from_shell genop.tab chapters/opcodes_doc.asciidoc

genop.tab:
wget -O genop.tab https://raw.githubusercontent.com/erlang/otp/master/lib/compiler/src/genop.tab
touch $@

clean:
find site -type f -name '.[^gitignore]*' -delete
rm -rfv beam-book.pdf site/index.html site/*.png site/*.md5 xml/*.png xml/*.md5 xml/beam-book-from-ab.xml ./images/diag-*.png site/code/*/*.png site/images/*
rmdir site/code/* site/images site/code
ASSET_CHAPTERS = $(shell find chapters -type f)

all: chapters/contributors.txt beam-book.pdf index.html

chapters/contributors.txt: .git
./bin/gitlog.sh $@

beam-book.pdf: chapters/opcodes_doc.asciidoc book.asciidoc chapters/contributors.txt $(ASSET_CHAPTERS)
asciidoctor-pdf -r ./style/custom-pdf-converter.rb -r asciidoctor-diagram -r ./style/custom-admonition-block.rb -a config=./style/ditaa.cfg --doctype=book -a pdf-style=./style/pdf-theme.yml book.asciidoc -o $@

index.html: $(ASSET_CHAPTERS)
cp -r images site
asciidoctor -r asciidoctor-diagram -r ./style/custom-admonition-block.rb -a config=style/ditaa.cfg --backend=html5 --doctype=book -o site/index.html book.asciidoc --trace
rsync -R code/*/*.png site

code/book/ebin/generate_op_doc.beam: code/book/src/generate_op_doc.erl
erlc -o $(dir $@) $<

chapters/opcodes_doc.asciidoc: genop.tab code/book/ebin/generate_op_doc.beam
erl -pa code/book/ebin/ -noshell -s generate_op_doc from_shell genop.tab chapters/opcodes_doc.asciidoc

genop.tab:
wget -O genop.tab https://raw.githubusercontent.com/erlang/otp/master/lib/compiler/src/genop.tab
touch $@

clean:
find site -type f -name '.[^gitignore]*' -delete
rm -rfv beam-book.pdf site/index.html site/*.png site/*.md5 xml/*.png xml/*.md5 xml/beam-book-from-ab.xml ./images/diag-*.png site/code/*/*.png site/images/*
rmdir site/code/* site/images site/code
216 changes: 108 additions & 108 deletions chapters/ap-code_listings.asciidoc
Original file line number Diff line number Diff line change
@@ -1,108 +1,108 @@
[[AP-listings]]
[appendix]
= Full Code Listings

[source,erlang]
----
include::../code/beam_modules_chapter/src/beamfile.erl[]
----

// [source,erlang]
// ----
// include::../stack_machine.erl[]
// ----

[source,erlang]
----
include::../code/compiler_chapter/src/world.erl[]
----

[source,erlang]
----
include::../code/compiler_chapter/src/json_parser.erl[]
----

[source,erlang]
----
include::../code/compiler_chapter/src/json_test.erl[]
----

[source,erlang]
----
include::../code/processes_chapter/src/msg.erl[]
----


[source,erlang]
----
include::../code/beam_chapter/src/stack_machine_compiler.erl[]
----

[source,c]
----
include::../code/beam_chapter/src/vsm.c[]
----

[source,c]
----
include::../code/beam_chapter/src/token_threaded_vsm.c[]
----

// [source,erlang]
// ----
// include::../add.erl[]
// ----

// [source,beam]
// ----
// include::../add.S[]
// ----

[[listing-share]]

[source,erlang]
----
include::../code/memory_chapter/src/share.erl[]
----

[[listing-send]]


[source,erlang]
----
include::../code/memory_chapter/src/send.erl[]
----

[[listing-lb]]
Load Balancer.

[source,erlang]
----
include::../code/memory_chapter/src/lb.erl[]
----

[[listing-show]]
show.

[source,erlang]
----
include::../code/type_system_chapter/src/show.erl[]
----

[source,c]
----
include::../code/building_chapter/hipe_debug.patch[]
----


// [[listing-lbS]]
// [source,beam]
// ----
// include::../lb.S[]
// ----

// [[listing-gdb]]
// [source,c]
// ----
// include::../gdb_scripts[]
// ----
[[AP-listings]]
[appendix]
= Full Code Listings

[source,erlang]
----
include::../code/beam_modules_chapter/src/beamfile.erl[]
----

// [source,erlang]
// ----
// include::../stack_machine.erl[]
// ----

[source,erlang]
----
include::../code/compiler_chapter/src/world.erl[]
----

[source,erlang]
----
include::../code/compiler_chapter/src/json_parser.erl[]
----

[source,erlang]
----
include::../code/compiler_chapter/src/json_test.erl[]
----

[source,erlang]
----
include::../code/processes_chapter/src/msg.erl[]
----


[source,erlang]
----
include::../code/beam_chapter/src/stack_machine_compiler.erl[]
----

[source,c]
----
include::../code/beam_chapter/src/vsm.c[]
----

[source,c]
----
include::../code/beam_chapter/src/token_threaded_vsm.c[]
----

// [source,erlang]
// ----
// include::../add.erl[]
// ----

// [source,beam]
// ----
// include::../add.S[]
// ----

[[listing-share]]

[source,erlang]
----
include::../code/memory_chapter/src/share.erl[]
----

[[listing-send]]


[source,erlang]
----
include::../code/memory_chapter/src/send.erl[]
----

[[listing-lb]]
Load Balancer.

[source,erlang]
----
include::../code/memory_chapter/src/lb.erl[]
----

[[listing-show]]
show.

[source,erlang]
----
include::../code/type_system_chapter/src/show.erl[]
----

[source,c]
----
include::../code/building_chapter/hipe_debug.patch[]
----


// [[listing-lbS]]
// [source,beam]
// ----
// include::../lb.S[]
// ----

// [[listing-gdb]]
// [source,c]
// ----
// include::../gdb_scripts[]
// ----
Loading

0 comments on commit 53c0bc3

Please sign in to comment.