• R/O
  • SSH
  • HTTPS

nina: Commit


Commit MetaInfo

Revision676 (tree)
Time2018-11-11 08:16:44
Authory-moriguchi

Log Message

add generating shebang on JavaScript

Change Summary

Incremental Difference

--- nina/java/translator/net/morilib/nina/translate/AbstractNinaTranslator.java (revision 675)
+++ nina/java/translator/net/morilib/nina/translate/AbstractNinaTranslator.java (revision 676)
@@ -765,6 +765,7 @@
765765 env.bind("IGNORE_CASE",
766766 q.isOptionDefined("ignoreCase") ? "t" : "");
767767 env.bind("SKIP_SPACES", q.getOptionNvl("whiteSpaces", " \\t\\n"));
768+ env.bind("SHEBANG", q.getOptionNvl("shebang", ""));
768769
769770 if("prompt".equals(q.getOption("main"))) {
770771 env.bind("PUTPROMPT", "true");
--- nina/java/translator/net/morilib/nina/translate/nina_template.dfa.js.sub1.sh (revision 675)
+++ nina/java/translator/net/morilib/nina/translate/nina_template.dfa.js.sub1.sh (revision 676)
@@ -14,6 +14,7 @@
1414 # See the License for the specific language governing permissions and
1515 # limitations under the License.
1616 #
17+[ -z "$SHEBANG" ] || echo "#!$SHEBANG"
1718 putlicense_cstyle.sh
1819 buffer='$buffer'
1920 bufferUnicode='$bufferUnicode'
Show on old repository browser