Author: sebastien.lelong
Date: Thu Jan 1 22:36:34 2009
New Revision: 697
Added:
trunk/unvalidated/compiler/make_sample.sh (contents, props changed)
Modified:
trunk/unvalidated/compiler/README
Log:
add make_sample.sh + move description about make_* in another section since
not in the compiler distrib, as previously said
Modified: trunk/unvalidated/compiler/README
==============================================================================
--- trunk/unvalidated/compiler/README (original)
+++ trunk/unvalidated/compiler/README Thu Jan 1 22:36:34 2009
@@ -7,6 +7,13 @@
* jalv2.exe : Windows binary
* jalv2ecs.exe : eComStation (OS/2) binary
+Helper, to show how to compile samples:
+
+ * make_sample.bat : batch file to compile a sample under Windows
+ * make_sample.cmd : batch file to compile a sample under
eComStation(OS/2)
+ * make_sample.sh : batch file to compile a sample under Linux (and
other *nix)
+
+
Other files of the original compiler distribution:
* decode.txt : decoding the assembly file
@@ -15,8 +22,6 @@
* jalpragm.txt : pragmas
* JalV2-manual.html : JalV2 Language User's Guide
* license.txt : the JalV2 license
- * make_sample.bat : batch file to compile a sample under Windows
- * make_sample.cmd : batch file to compile a sample under
eComStation(OS/2)
* readme.asm : inline assembler
* readme.txt : original Readme
Added: trunk/unvalidated/compiler/make_sample.sh
==============================================================================
--- (empty file)
+++ trunk/unvalidated/compiler/make_sample.sh Thu Jan 1 22:36:34 2009
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+# This is a shell script to show how to compile a
+# sample on linux (and other *nix)
+
+# By default, 16f877a_blink.jal is compiled,
+# but you can specify your own sample on
+# the commandline (full path)
+SAMPLE=../sample/16f877a_blink.jal
+if [ "$1" != "" ]
+then
+ SAMPLE=$1
+fi
+
+./jalv2 -long-start -s ../lib $SAMPLE
+
+echo
+echo
+echo Look for the output files in the sample directory:
+outdir=`dirname $SAMPLE`
+f=`basename $SAMPLE`
+ls $outdir/`echo $f | sed "s#\.jal\\\$##"`.*
+echo
+echo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---