blob: ea89e39ecf139d6660869ccdec5e8f7fc810200f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
DST=${RPM_INSTALL_PREFIX}/sapp/
mkdir -p ${DST}/plug/stellar_on_sapp
mkdir -p ${DST}/stellar_plugin/
touch ${DST}/stellar_plugin/spec.toml
touch ${DST}/plug/conflist.inf
if ! grep -q '^\./plug/stellar_on_sapp/start_loader.inf$' "${DST}/plug/conflist.inf"; then
if grep -q '^\[platform\]$' "${DST}/plug/conflist.inf"; then
sed -i '/^\[platform\]$/a\./plug/stellar_on_sapp/start_loader.inf' "${DST}/plug/conflist.inf"
else
echo -e "[platform]\n./plug/stellar_on_sapp/start_loader.inf" >> "${DST}/plug/conflist.inf"
fi
fi
if ! grep -q '^\./plug/stellar_on_sapp/defer_loader.inf$' "${DST}/plug/conflist.inf"; then
if grep -q '^\[business\]$' "${DST}/plug/conflist.inf"; then
sed -i '/^\[business\]$/a\./plug/stellar_on_sapp/defer_loader.inf' "${DST}/plug/conflist.inf"
else
echo -e "[business]\n./plug/stellar_on_sapp/defer_loader.inf" >> "${DST}/plug/conflist.inf"
fi
fi
|