summaryrefslogtreecommitdiff
path: root/cmake/PreInstall.in
diff options
context:
space:
mode:
authorlijia <[email protected]>2024-04-09 10:11:58 +0800
committerlijia <[email protected]>2024-04-09 10:11:58 +0800
commitcf28256a57399fff8f0bd4e4267d57c17a49a685 (patch)
treef56d6466f383865dd75dce7c6c74dced64729110 /cmake/PreInstall.in
parentd2344728cc2fbec37b2186c05634ac509d2fc3c4 (diff)
fix build RPM package, update cmake/Preinsall, cmake/PreUninstallv0.0.1
Diffstat (limited to 'cmake/PreInstall.in')
-rw-r--r--cmake/PreInstall.in22
1 files changed, 0 insertions, 22 deletions
diff --git a/cmake/PreInstall.in b/cmake/PreInstall.in
deleted file mode 100644
index ea89e39..0000000
--- a/cmake/PreInstall.in
+++ /dev/null
@@ -1,22 +0,0 @@
-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 \ No newline at end of file