This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
mesa-platform-gquic/cmake/preInstall.sh

16 lines
409 B
Bash
Raw Normal View History

#!/bin/sh
DST=${RPM_INSTALL_PREFIX}
mkdir -p ${DST}/plug/protocol/
touch ${DST}/plug/conflist.inf
mkdir -p ${DST}/etc/
touch ${DST}/etc/entrylist.conf
if [[ -z `grep -rn 'quic.inf' ${DST}/plug/conflist.inf` ]];then
sed -i '/\[protocol\]/a\./plug/protocol/quic/quic.inf' ${DST}/plug/conflist.inf
fi
if [[ -z `grep -rn 'QUIC' ${DST}/etc/entrylist.conf` ]];then
echo "QUIC" >> ${DST}/etc/entrylist.conf
fi