-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
178 lines (106 loc) · 4.13 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
SRC_NAME = $(shell ls src)
SRC_NAME = $(shell ls src | grep ".\(ls\)")
TEST_NAME = $(shell ls test | grep ".\(ls\|yaml\)")
# SRC_FILES = ${SRC_NAME:%=--watch src/%} --watch makefile --watch .remotemon.yaml
# SRC_FILES = ${SRC_NAME:%=--watch src/%} --watch makefile --watch ./test/var/.remotemon.yaml
# SRC_FILES = ${SRC_NAME:%=--watch src/%} --watch makefile --watch ./test/var/.remotemon.yaml --watch /mnt/c/code/rpi/.remotemon.yaml
SRC_FILES = ${SRC_NAME:%=--watch src/%} --watch makefile
TEST_FILES = ${TEST_NAME:%=--watch test/%}
MAKEFLAGS += --no-print-directory
file = test/test.js
pkg:
yaml2json -p src/package.yaml > package.json
create_configfile_error:
sleep 6
echo -e "\n3" >> /mnt/c/code/mono/gitfer/.remotemon.yaml
sleep 5
truncate -s-2 /mnt/c/code/mono/gitfer/.remotemon.yaml
compile:
lsc --no-header -cbo dist src
lsc -cb test
yaml2json -p src/package.yaml > package.json
remotemon --version
# remotemon --config test/opt.yaml -w foo
# remotemon longname -w foo bar
# cd ../convert
# remotemon --project test
# remotemon -p router hostapd.status
# remotemon -vv longname
# remotemon ext=ex4 remotehost="192.148.92.1"
# remotemon -p remotemon/test/var longname foo bar ext=456
# remotemon -p remotemon/test/var longname foo
# remotemon -w -p remotemon/test/var longname
# remotemon -ccc -d -p rpi send './imagine-utils' '~/imagine-utils'
# remotemon -ccc -p rpi cp.image.utils a -- -d -vv
# remotemon -ccc -p rpi cp.image.utils -- -d -vv
# remotemon -p rpi cp.image.utils -- -vv
# remotemon -p rpi -vvv send ./imagine-utils
# remotemon -p rpi -vvv send ./imagine-utils
# ./dist/cmdline.js -p rpi install.zsh -vv -d
# ./dist/cmdline.js -p rpi fail.build --resume
# ./dist/cmdline.js -w -p mono/gitfer fail.build
# ./dist/cmdline.js -w -p mono/gitfer fail.build
# ./dist/cmdline.js -w -p mono/gitfer fail.build
# make create_configfile_error & ./dist/cmdline.js -w -p mono/gitfer fail.build
# ./dist/cmdline.js -p yt test
# ./dist/cmdline.js -p mono/gitfer -c
# ./dist/cmdline.js -p blog.new/edit init
# ./dist/cmdline.js -p mono/gitfer --ll
# ./dist/cmdline.js -p yt video
# ./dist/cmdline.js -p rpi fail.build --resume
# ./dist/cmdline.js -p yt empty
# ./dist/cmdline.js -p mono/hoplon -ll
# ./dist/cmdline.js -p mono/autousb remote.install.node
# ./dist/cmdline.js -p mono/autousb remote.install.node --resume
# ./dist/cmdline.js -p mono/autousb remote.install.node --resume
# ./dist/cmdline.js -p mono/autousb remote.install.node
# ./dist/cmdline.js -p rpi fail.build
# ./dist/cmdline.js -p rpi -ll
# remotemon -p mono/hoplon test.proj proj=guard
# remotemon -p mono/hoplon -l
# rm ~/.config/remotemon/config.remotemon.yaml 2> /dev/null
# ./dist/cmdline.js -p yt hello
# ./dist/cmdline.js -p blog.new/edit -l
# ./dist/cmdline.js -p blog.new/edit blog.w
# remotemon -c ./test/opt.yaml version.update
# remotemon --config test/opt.yaml pkg
# remotemon --config test/opt.yaml -l
# file=hello foo bar
ncc:
yq w -i src/package.yaml bin.remotemon 'bundle/index.js'
lsc --no-header -cbo dist src
lsc -cb test
yaml2json -p src/package.yaml > package.json
ncc --minify build ./dist/cmdline.js -o ./bundle
# ncc build ./dist/cmdline.js -o ./bundle
yq w -i src/package.yaml bin.remotemon 'dist/cmdline.js'
r.ncc:
make ncc
# ./bundle/index.js -p mono/gitfer -c
# ./dist/cmdline.js -p rpi install.zsh -v -d machine=backup -ccc
./bundle/index.js -w -v -p scripts split.video #TeamBaan Podcast S2E1 _ Dr. Anshul Trivedi _ Ameya Deshpande-DWy6C1TWGzE.m4a
w.ncc:
nodemon --delay 1 --exec "make r.ncc || exit 1" ${SRC_FILES}
w.compile:
# nodemon --exec "make compile || exit 1" ${SRC_FILES} ${TEST_FILES}
nodemon --delay 1 --exec "make compile || exit 1" ${SRC_FILES}
.ONESHELL:
SHELL = /bin/bash
.SHELLFLAGS = -ec
travis:
@for i in test/*.js
do
node $$i
done
testy:
@lsc -co dist src
@lsc -c test/*.ls
make pkg
make travis
w.testy:
nodemon --exec "make testy" ${TEST_FILES} ${SRC_FILES}
w.sudo:
nodemon --exec "sudo apt-get update"
update-version:
# @update-version src/config.remotemon.yaml remotemon current_version_number
@update-version src/package.yaml remotemon version