diff --git a/bin/latexd b/bin/latexd index d9e50fb..c5f2a6f 120000 --- a/bin/latexd +++ b/bin/latexd @@ -1 +1 @@ -../latex/latexd.sh \ No newline at end of file +../textproc/latexd.sh \ No newline at end of file diff --git a/bin/make_html2text b/bin/make_html2text index d4a0143..029ff8c 120000 --- a/bin/make_html2text +++ b/bin/make_html2text @@ -1 +1 @@ -../make_html2text/make_html2text.sh \ No newline at end of file +../textproc/make_html2text.sh \ No newline at end of file diff --git a/latex/README b/latex/README deleted file mode 100644 index a04692e..0000000 --- a/latex/README +++ /dev/null @@ -1,9 +0,0 @@ -latexd.sh watches a file and calls make when it is changed. This is -useful to automatically compile a LaTeX document when saved. -To detect a change, a MD5 sum of the file is computed. - -This script works well (at least) on GNU/Linux and FreeBSD. - -Limitations : -- Handles only a single file. -- The delay between two checks is not configurable. diff --git a/make_html2text/README b/make_html2text/README deleted file mode 100644 index d45b202..0000000 --- a/make_html2text/README +++ /dev/null @@ -1,9 +0,0 @@ -make_html2text.sh converts all HTML (.html and .htm) files in the -current directory into text files (.txt). For each HTML file, it -verifies that the text file does not exists, or is older than the -corresponding HTML file; if the text file is more recent, nothing is -done. - -To use this script, you will have to install the program html2text. -The option -nobs is used to avoid output of formatting sequences (bold, -italic, etc.). diff --git a/textproc/README.md b/textproc/README.md new file mode 100644 index 0000000..574606e --- /dev/null +++ b/textproc/README.md @@ -0,0 +1,27 @@ +latexd.sh +========= + +`latexd.sh` is a quick and dirty script that watches a file and calls `make` +whenever a change is detected. This is useful to automatically compile a LaTeX +document when saved, but can actually be used in any case where you have to +call `make` regularly. To detect a change, a MD5 sum of the file is computed. + +This script works well (at least) on GNU/Linux and FreeBSD. + +Limitations : + +- Handles only a single file. +- The delay between two checks is not configurable. + + +make_html2text.sh +================= + +`make_html2text.sh` converts all HTML (`.html` and `.htm`) files in the current +directory into text files (.txt). For each HTML file, it verifies that the text +file does not exists, or is older than the corresponding HTML file; if the text +file is more recent, nothing is done. + +To use this script, you will have to install the program `html2text`. The +option `-nobs` is used to avoid output of formatting sequences (bold, italic, +etc.). diff --git a/latex/latexd.sh b/textproc/latexd.sh similarity index 100% rename from latex/latexd.sh rename to textproc/latexd.sh diff --git a/make_html2text/make_html2text.sh b/textproc/make_html2text.sh similarity index 100% rename from make_html2text/make_html2text.sh rename to textproc/make_html2text.sh