Skip to content

Commit 66a849b

Browse files
author
ncannasse
committed
added
1 parent 0fa84f8 commit 66a849b

File tree

2 files changed

+101
-0
lines changed

2 files changed

+101
-0
lines changed

doc/Makefile

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
DESTDIR=
2+
PREFIX=/usr/local
3+
ZLIB=/usr/lib/libz.so
4+
5+
build:
6+
( cd ocaml/extc ; ocamlc extc_stubs.c ;\
7+
ocamlfind ocamlopt -package extlib -a -o extc.cmxa -cclib ../extc/extc_stubs.o -cclib $(ZLIB) extc.mli extc.ml )
8+
cd ocaml/swflib ; ocamlfind ocamlopt -package extlib -a -o swflib.cmxa -I .. -I ../extc swf.ml swfZip.ml actionScript.ml swfParser.ml
9+
( cd ocaml/mtasc ; ocamllex lexer.mll ; ocamlopt -c expr.ml lexer.ml ; ocamlopt -c -pp camlp4o parser.ml ;\
10+
ocamlfind ocamlopt -package extlib -c -I .. -I ../extc -I ../swflib typer.ml class.ml plugin.ml genSwf.ml main.ml ;\
11+
ocamlfind ocamlopt -package extlib -linkpkg -o mtasc -cclib $(ZLIB) extLib.cmxa ../extc/extc.cmxa ../swflib/swflib.cmxa expr.cmx lexer.cmx parser.cmx typer.cmx class.cmx plugin.cmx genSwf.cmx main.cmx )
12+
13+
clean:
14+
rm -f ocaml/*/*.cma ocaml/*/*.cmi ocaml/*/*.cmo ocaml/*/*.cmx
15+
rm -f ocaml/*/*.cmxa ocaml/*/*.o ocaml/*/*.a
16+
rm -f ocaml/mtasc/lexer.ml ocaml/mtasc/mtasc
17+
18+
install:
19+
mkdir -p $(DESTDIR)$(PREFIX)/bin/ $(DESTDIR)$(PREFIX)/share/
20+
cp ocaml/mtasc/mtasc $(DESTDIR)$(PREFIX)/bin/
21+
cp -r ocaml/mtasc/std $(DESTDIR)$(PREFIX)/share/
22+
cp -r ocaml/mtasc/std8 $(DESTDIR)$(PREFIX)/share/
23+
24+
.PHONY: build install clean

doc/mtasc.1

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
.TH MTASC "1" "February 2006" "mtasc " "User Commands"
2+
.SH NAME
3+
mtasc \- ActionScript 2 to Flash (SWF) compiler
4+
.SH DESCRIPTION
5+
.PP
6+
This manual page documents briefly the \fBmtasc\fR command.
7+
.PP
8+
It was written for Debian as \fBmtasc\fR does not have a manual page.
9+
.PP
10+
\fBmtasc\fR compiles ActionScript 2 files to Flash (SWF) files.
11+
.PP
12+
.SH SYNOPSIS
13+
\fBmtasc\fP [options] <files...>
14+
.SH OPTIONS
15+
.PP
16+
The options are processed from left to right. All of the options use a single dash.
17+
.TP
18+
\fB\-pack\fR <path>
19+
Compile all files in target package.
20+
.TP
21+
\fB\-cp\fR <path>
22+
Add classpath.
23+
.TP
24+
\fB\-v\fR
25+
Turn on verbose mode.
26+
.TP
27+
\fB\-strict\fR
28+
Turn on strict mode.
29+
.TP
30+
\fB\-infer\fR
31+
Turn on local variables inference.
32+
.TP
33+
\fB\-wimp\fR
34+
Turn on warnings for unused imports.
35+
.TP
36+
\fB\-msvc\fR
37+
Use MSVC style errors.
38+
.TP
39+
\fB\-mx\fR
40+
Use precompiled mx package.
41+
.TP
42+
\fB\-swf\fR <file>
43+
Input SWF file to update.
44+
.TP
45+
\fB\-out\fR <file>
46+
SWF output file.
47+
.TP
48+
\fB\-keep\fR
49+
Do not remove AS2 classes from input SWF.
50+
.TP
51+
\fB\-frame\fR <frame>
52+
Export into target frame (it must exist in the SWF).
53+
.TP
54+
\fB\-main\fR
55+
Enable the main entry point.
56+
.TP
57+
\fB\-header\fR <header>
58+
Specify header format. The format of this option is 'width:height:fps',
59+
where fps means frames per second.
60+
.TP
61+
\fB\-group\fR
62+
Group classes into a single clip
63+
.TP
64+
\fB\-exclude\fR <file>
65+
Exclude classes listed in a file.
66+
.TP
67+
\fB\-version\fR
68+
Change SWF version (6,7,8,...)
69+
.TP
70+
\fB\-trace\fR <function>
71+
Specify a TRACE function.
72+
.TP
73+
\fB\-help\fR or \fB\-\-help\fR
74+
Display a list of options and what they do.
75+
.SH "SEE ALSO"
76+
.PP
77+
The mtasc website (http://www.mtasc.org) and the mtasc osflash page (http://osflash.org/mtasc).

0 commit comments

Comments
 (0)