Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating: packaging ats2-mode into future releases
- Loading branch information
Showing
6 changed files
with
143 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
%{ | ||
// | ||
dynload "libatsdoc/dynloadall.dats" | ||
// | ||
staload "libatsdoc/SATS/libatsdoc_atext.sats" | ||
// | ||
extern | ||
fun comment (x: string): atext | ||
// | ||
extern | ||
fun packpreamble (): atext | ||
extern | ||
fun packpostamble (): atext | ||
extern | ||
fun packtitle (x: string): atext | ||
extern | ||
fun packfilename (x: string): atext | ||
extern | ||
fun packfilesynop (x: string): atext | ||
// | ||
%} | ||
|
||
(* ****** ****** *) | ||
|
||
%{ | ||
|
||
implement | ||
comment (x) = atext_nil () | ||
|
||
%} | ||
|
||
(* ****** ****** *) | ||
|
||
%{ | ||
|
||
implement | ||
packpreamble () = let | ||
// | ||
val out = stdout_ref | ||
val () = fprint_string (out, "\ | ||
#!/bin/bash\n\ | ||
#\n\ | ||
# This script is automatically generated.\n\ | ||
#\n\ | ||
\n\ | ||
SOURCE=../../utils/emacs\n\ | ||
TARGET=ATS-Postiats/utils/emacs\n\ | ||
\n\ | ||
srcget ()\n\ | ||
{\n\ | ||
cp -f ${SOURCE}/$1 ${TARGET}/$1 ;\n\ | ||
}\n\ | ||
\n\ | ||
") // end of [val] | ||
// | ||
in | ||
atext_nil () | ||
end // end of [packpreamble] | ||
|
||
implement | ||
packpostamble () = let | ||
val out = stdout_ref | ||
val () = fprint_string (out, "\ | ||
#\n\ | ||
echo \"The \${ATSHOME}/utils/emacs files have been copied.\"\n\ | ||
#\n\ | ||
# end of the automatically generated script\n\ | ||
#\n\ | ||
") | ||
in | ||
atext_nil () | ||
end // end of [packpostamble] | ||
|
||
implement | ||
packtitle (x) = atext_nil () | ||
|
||
implement | ||
packfilename (x) = let | ||
// | ||
val out = stdout_ref | ||
val () = fprintf (out, "srcget \"%s\" ;\n", @(x)) | ||
// | ||
in | ||
atext_nil () | ||
end // end of [packfilename] | ||
|
||
implement | ||
packfilesynop (x) = atext_nil () | ||
|
||
%} | ||
|
||
(* ****** ****** *) | ||
|
||
#packpreamble() | ||
|
||
(* ****** ****** *) | ||
|
||
#packtitle("\ | ||
ATS/utils/emacs | ||
") | ||
|
||
(* ****** ****** *) | ||
// | ||
#packfilename("ats2-mode.el") | ||
#packfilename("ats2-flymake.el") | ||
// | ||
(* ****** ****** *) | ||
|
||
#packpostamble() | ||
|
||
(* ****** ****** *) | ||
|
||
%{ | ||
implement main (argc, argv) = () | ||
%} | ||
|
||
(* ****** ****** *) | ||
|
||
(* end of [utils_emacs.atxt] *) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters