Make installation functional for upcoming code release
This commit is contained in:
+20
-2
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user