Christian Fraß commited on 2021-11-19 00:18:08
Zeige 3 geänderte Dateien mit 27 Einfügungen und 12 Löschungen.
... | ... |
@@ -8,9 +8,9 @@ |
8 | 8 |
"poll_interval_in_milliseconds": 2000 |
9 | 9 |
}, |
10 | 10 |
"irc": { |
11 |
- "server": "irc.abtreff.de", |
|
12 |
- "predefined_channel": "#ab", |
|
13 |
- "predefined_nickname_prefix": "wichtel_" |
|
11 |
+ "server": "irc.libera.chat", |
|
12 |
+ "predefined_channel": "#linux", |
|
13 |
+ "predefined_nickname_prefix": "dude_" |
|
14 | 14 |
} |
15 | 15 |
} |
16 | 16 |
|
... | ... |
@@ -1,4 +1,27 @@ |
1 | 1 |
#!/usr/bin/env sh |
2 | 2 |
|
3 |
+## consts |
|
4 |
+ |
|
5 |
+dir_build="build" |
|
6 |
+dir_conf="conf" |
|
7 |
+ |
|
8 |
+ |
|
9 |
+## args |
|
10 |
+ |
|
11 |
+if [ $# -ge 1 ] ; then profile=$1 ; else profile="-" ; fi |
|
12 |
+ |
|
13 |
+ |
|
14 |
+## exec |
|
15 |
+ |
|
16 |
+echo ">> building …" |
|
3 | 17 |
make -f tools/makefile |
4 | 18 |
|
19 |
+if $(test ${profile} = '-') |
|
20 |
+then |
|
21 |
+ # do nothing |
|
22 |
+ echo ">> no profile given; not placing configuration file" |
|
23 |
+else |
|
24 |
+ echo ">> placing configuration for profile '${profile}' …" |
|
25 |
+ cp -ru ${dir_conf}/${profile}.json ${dir_build}/conf.json |
|
26 |
+fi |
|
27 |
+ |
... | ... |
@@ -15,7 +15,7 @@ cmd_mkdir := mkdir -p |
15 | 15 |
|
16 | 16 |
## rules |
17 | 17 |
|
18 |
-all: structure logic style conf |
|
18 |
+all: structure logic style |
|
19 | 19 |
.PHONY: all |
20 | 20 |
|
21 | 21 |
structure: ${dir_build}/index.html |
... | ... |
@@ -42,11 +42,3 @@ ${dir_build}/style.css: ${dir_source}/style.less |
42 | 42 |
@ ${cmd_mkdir} $(dir $@) |
43 | 43 |
@ ${cmd_lessc} $^ > $@ |
44 | 44 |
|
45 |
-conf: ${dir_build}/conf.json |
|
46 |
-.PHONY: conf |
|
47 |
- |
|
48 |
-${dir_build}/conf.json: ${dir_source}/conf.json |
|
49 |
- @ ${cmd_log} "conf …" |
|
50 |
- @ ${cmd_mkdir} $(dir $@) |
|
51 |
- @ ${cmd_cp} -ru $^ $@ |
|
52 |
- |
|
53 | 45 |