forked from Conedy/Conedy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
recompilePython-Conedy
executable file
·47 lines (24 loc) · 1.1 KB
/
recompilePython-Conedy
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
#!/usr/bin/make -sf
include ${HOME}/.config/conedy/config.h
doit: ${todo}
conedy:
conedy-root:
condor:
python-conedy:
python-conedy-root:
documentation:
conedy-src: recompile
recompile: ${HOME}/.config/conedy/config.h
name=`mktemp`; make -sC ${dirSrc} version > $$name; \
( [ -f ${buildDir}/Makefile ] && diff $$name ${buildDir}/version ) || make -C ${dirSrc} copySrc
TMP=`mktemp`; \
TMP=`mktemp`; cd ${buildDir};\
cd ${buildDir}; sum addedNodes/*.cfg > $$TMP; \
[ -d ${addedDir} ] && [ "$$(ls -A ${addedDir})" ] && (find ${addedDir} -name "*.cfg" | sort | xargs sum >> $$TMP) || true ; \
diff $$TMP ${buildDir}/addedNodes.sum.old || ${noUserSpace} touch ${buildDir}/recompilationConedyStarted ${buildDir}/recompilationPython-ConedyStarted
[ -f ${buildDir}/recompilationPython-ConedyStarted ]
make -C ${buildDir} python-conedy.recompile
${HOME}/.config/conedy/config.h:
mkdir -p ${HOME}/.config/conedy
[ -f /etc/conedy.config ] && ln -s /etc/conedy.config ${HOME}/.config/conedy/config.h && recompilePython-Conedy
.PHONY: recompile conedy python-conedy documentation conedy-src