Mercurial > mxe-octave
changeset 359:e9fbffc4f48a
introduce placeholders for version number and target in the tutorial
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Wed, 03 Jun 2009 15:01:05 +0200 |
parents | 71ad41f4fcc7 |
children | 39bbfa41d808 |
files | Makefile doc/index.html |
diffstat | 2 files changed, 9 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Wed Jun 03 14:49:31 2009 +0200 +++ b/Makefile Wed Jun 03 15:01:05 2009 +0200 @@ -154,7 +154,10 @@ ($(foreach PKG,$(PKG_RULES), \ echo ' <tr><td><a href="$($(PKG)_WEBSITE)">$(PKG)</a></td><td>$($(PKG)_VERSION)</td></tr>';)) && \ $(SED) -n '/<!-- end of package list -->/,$$ p' '$(TOP_DIR)/doc/index.html' \ - ) >'$(TOP_DIR)/index.html' + ) \ + | $(SED) 's,\(<span class="version">\)[^<]*\(</span>\),\1$(VERSION)\2,g' \ + | $(SED) 's,\(<span class="target">\)[^<]*\(</span>\),\1$(TARGET)\2,g' \ + >'$(TOP_DIR)/index.html' cp -p '$(TOP_DIR)/index.html' 'mingw_cross_env-$(VERSION)/doc/' cd 'mingw_cross_env-$(VERSION)/doc' && lynx -dump -width 75 -nolist -force_html index.html >README cp -p '$(TOP_DIR)/Makefile' 'mingw_cross_env-$(VERSION)/'
--- a/doc/index.html Wed Jun 03 14:49:31 2009 +0200 +++ b/doc/index.html Wed Jun 03 15:01:05 2009 +0200 @@ -177,8 +177,8 @@ <a href="#latest-release">latest release</a> and unpack the tarball: </p> - <pre>wget http://www.profv.de/mingw_cross_env/mingw_cross_env-2.5.tar.gz -tar -xzvf mingw_cross_env-2.5.tar.gz</pre> + <pre>wget http://www.profv.de/mingw_cross_env/mingw_cross_env-<span class="version">X.Y</span>.tar.gz +tar -xzvf mingw_cross_env-<span class="version">X.Y</span>.tar.gz</pre> <p> If you don't mind installing it in your home directory, @@ -204,7 +204,7 @@ but feel free to use any other directory if you like. </p> <pre>su -mv mingw_cross_env-2.5 /opt/mingw +mv mingw_cross_env-<span class="version">X.Y</span> /opt/mingw exit</pre> <p> @@ -275,12 +275,12 @@ You may have to add a few others, depending on your project. Then, all you have to do is type this: </p> - <pre>make CROSS="i386-mingw32msvc-"</pre> + <pre>make CROSS="<span class="target">i386-mingw32msvc</span>-"</pre> <p> If you're using configure, all you have to do is: </p> - <pre>./configure --host="i386-mingw32msvc" + <pre>./configure --host="<span class="target">i386-mingw32msvc</span>" make</pre> <p> That's it!