File tree 3 files changed +26
-16
lines changed
3 files changed +26
-16
lines changed Original file line number Diff line number Diff line change @@ -5,35 +5,40 @@ rm -rf ${DEST}
5
5
mkdir -p ${DEST}
6
6
7
7
pushd ${SRC}
8
+ echo Building the Flow executable.
8
9
raco exe --gui -o ${BASE} gui.rkt
10
+ echo Sleeping
9
11
sleep 2
12
+ echo Readying for Distribution
10
13
raco distribute ${DEST} ${BASE}
11
- sleep 2
12
- chmod 755 ${DEST} /${BASE}
14
+ echo Sleeping
15
+ sleep 2
16
+ echo Setting executable mode.
17
+ chmod 755 ${DEST} /bin/${BASE}
13
18
popd
14
19
15
- cp -R ../bin/unix/ ${DEST} /bin/unix/
20
+ echo Moving files around
16
21
sleep 2
22
+ cp -R ../bin/unix/ ${DEST} /bin/unix/
17
23
cp -R ../config/ ${DEST} /config/
18
- sleep 2
19
24
cp -R ../interface/ ${DEST} /interface/
20
- sleep 2
21
25
cp -R ../occam/ ${DEST} /occam/
22
- sleep 2
23
26
mkdir -p ${DEST} /temp
24
- sleep 2
25
27
# Hopefully eliminating the "not found" errors
26
28
# that happen... for reasons unknown.
27
29
mkdir -p ${DEST} /conf
28
30
touch ${DEST} /conf/not-found.html
29
31
32
+ echo Going up one level
30
33
pushd ..
31
- tar cvzf Flow.tgz Flow/
34
+ echo Zipping.
35
+ tar cvzf Flow.tgz Flow/
32
36
33
- if [ " ${USER} " == " reynoldsm" ]; then
37
+ echo If the first command line argument was " upload" ...
38
+ if [ " $1 " = " upload" ]; then
39
+ echo Uploading
34
40
scp -i
~ /.ssh/jadudm-rsa
${BASE} .tgz
[email protected] :/srv/www/org/transterpreter.download/files/flow/
35
- fi
36
-
41
+ fi
37
42
popd
38
43
39
44
Original file line number Diff line number Diff line change 274
274
(open-input-file (build-port (get-data 'port )) #:mode 'binary ))
275
275
276
276
(let loop ()
277
+ (when (port? (get-data 'SERIALP ))
277
278
(let ([line (read-line (get-data 'SERIALP ))]
278
279
[txt (send
279
280
(send serial-editor get-editor)
288
289
(set! c 0 )]
289
290
[else
290
291
(send serial-editor set-value txt)])
291
- )
292
+ ))
292
293
293
294
(loop))
294
295
)))
308
309
(thread (λ () (serve))))
309
310
310
311
(send serial-f show true)
311
- (set! serial-thread-id
312
- (thread (get-data 'serial-thread )))
312
+ ;; (set! serial-thread-id
313
+ ;; (thread (get-data 'serial-thread)))
313
314
)))))
314
315
315
316
(define quit
Original file line number Diff line number Diff line change 244
244
;; Racket nicely cleans up after us, so we kill the thread
245
245
;; and the open serial port goes away.
246
246
(when (get-data 'serial-thread-id )
247
- (kill-thread (get-data 'serial-thread-id )))
247
+ (when (port? (get-data 'SERIALP ))
248
+ (close-input-port (get-data 'SERIALP )))
249
+ (sleep 1 )
250
+ (kill-thread (get-data 'serial-thread-id ))
251
+ (sleep 1 ))
248
252
249
253
(when-file (tbc-file)
250
254
(report 'BIN-TO-HEX " " )
293
297
(avrdude-cmd ARDUINO-PORT path))))
294
298
295
299
(report 'FIRMWARE cmd)
296
- (exe cmd)))
300
+ (exe cmd)))
You can’t perform that action at this time.
0 commit comments