blob: c0cf7074d23c0115bbc73894a4d9ba652051d38a (
plain)
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
|
#!/bin/sh
# $FreeBSD$
if [ "$2" != "POST-INSTALL" ]; then
exit 0
fi
F=%%BOINC_CLIENT_HOME%%/projects/%%SETI_SITE%%/app_info.xml
if [ ! -f $F ]; then
echo Creating new $F
echo "<app_info>" > $F
echo "</app_info>" >> $F
chown %%BOINC_CLIENT_USER%%:%%BOINC_CLIENT_GROUP%% $F
fi
echo Adding astropulse_v6 lines to $F
ed - $F <<EOF
1a
<app>
<name>astropulse_v6</name>
</app>
<file_info>
<name>%%AP_BINARY%%</name>
<executable/>
</file_info>
<app_version>
<app_name>astropulse_v6</app_name>
<version_num>%%AP_VERSION%%</version_num>
<file_ref>
<file_name>%%AP_BINARY%%</file_name>
<main_program/>
</file_ref>
</app_version>
.
w
q
EOF
|