Make installation functional for upcoming code release

This commit is contained in:
2026-08-18 09:04:08 +02:00
parent 28a4b2d8d3
commit fb5705ada0
14 changed files with 79 additions and 55 deletions
+20 -2
View File
@@ -11,6 +11,24 @@ LOCALEDIR="${PREFIX}/share/locale"
SOURCEDIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
if [ "$1" = "uninstall" ]; then
echo "Uninstalling YMS..."
rm -rf "${LIBDIR}"
rm -rf "${SHAREDIR}"
rm -f "${BINDIR}/yms"
rm -f "${DESKTOPDIR}/yms.desktop"
rm -rf "${DOCDIR}"
rm -f "${LOCALEDIR}/de/LC_MESSAGES/ymsgui.mo"
rm -f "${ICONDIR}/scalable/apps/yms.svg"
rm -f "${ICONDIR}/48x48/apps/yms.png"
rm -f "${ICONDIR}/64x64/apps/yms.png"
echo "YMS has been uninstalled successfully."
exit 0
fi
echo "Installing YMS..."
echo "Source: ${SOURCEDIR}"
echo "Prefix: ${PREFIX}"
@@ -43,7 +61,7 @@ install -m 0644 \
"${SOURCEDIR}/yms/ui/main.ui" \
"${SHAREDIR}/ui/main.ui"
cp -a \
"${SOURCEDIR}/webgui/shapes/." \
"${SOURCEDIR}/shapes/." \
"${SHAREDIR}/shapes/"
# Documentation
@@ -72,7 +90,7 @@ install -d "${ICONDIR}/48x48/apps"
install -d "${ICONDIR}/64x64/apps"
install -m 0644 \
"${SOURCEDIR}/icons/yms.svg" \
"${ICONDIR}/yms.svg"
"${ICONDIR}/scalable/apps/yms.svg"
install -m 0644 \
"${SOURCEDIR}/icons/yms48.png" \
"${ICONDIR}/48x48/apps/yms.png"