repo.or.cz
/
maxima.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix bug in m4_mathpunc
[maxima.git]
/
archive
/
bin
/
make-exe
blob
a6eb60e3e87fe5f5acc8a10beef8eadcdd1f8a92
1
#!/bin/sh
2
# comment \
3
exec
tclsh8.0
"
$0
"
"$@"
4
5
proc getFile
{
file
} {
6
set
f
[
open
$file
r
]
7
fconfigure
$f
-translation
binary
8
while
{ ![
eof
$f
] } {
9
append data
[
read
$f
]
10
}
11
close
$f
12
return
$data
13
}
14
15
16
17
if
{
$argc
<
1
} {
18
error
"make-exe foo.exe"
19
}
20
21
set
fi
[
open
[
lindex
$argv
0
]
w
]
22
fconfigure
$fi
-translation
binary
23
24
25
26
27
28
29
30