Commit af0509e3 authored by gambas's avatar gambas
Browse files

Fix deletion of empty directories.

[CONFIGURATION]
* BUG: Fix deletion of empty directories.
parent 5ee3fbbe
Pipeline #307766548 failed with stage
in 21 minutes and 58 seconds
......@@ -32,7 +32,7 @@ install-exec-local:
echo "Installing IDE application menu..."; \
$(INSTALL) -d $(DESTDIR)$(datarootdir)/desktop-directories; \
xdg-desktop-menu install --novendor $(srcdir)/desktop/gambas3.desktop; \
rmdir $(DESTDIR)$(datarootdir)/desktop-directories >/dev/null 2>&1; \
rmdir $(DESTDIR)$(datarootdir)/desktop-directories >/dev/null 2>&1 || true; \
fi
@echo "Installing the scripter..."
......@@ -73,9 +73,9 @@ uninstall-local:
@rm -rf $(DESTDIR)$(datarootdir)/metainfo/gambas3.appdata.xml
@rm -rf $(DESTDIR)$(datarootdir)/appdata/gambas3.appdata.xml
@rm -rf $(DESTDIR)$(gbdatadir)/template
@rmdir $(DESTDIR)$(datarootdir)/metainfo >/dev/null 2>&1;
@rmdir $(DESTDIR)$(datarootdir)/appdata >/dev/null 2>&1;
@rmdir $(DESTDIR)$(gbdatadir) >/dev/null 2>&1;
@rmdir $(DESTDIR)$(datarootdir)/metainfo >/dev/null 2>&1 || true
@rmdir $(DESTDIR)$(datarootdir)/appdata >/dev/null 2>&1 || true
@rmdir $(DESTDIR)$(gbdatadir) >/dev/null 2>&1 || true
dist-hook:
@(cd $(distdir)/src; \
......
......@@ -55,10 +55,10 @@ uninstall-hook:
@rm -rf $(DESTDIR)$(gbdatadir)/info/$(COMPONENT).list;
@rm -rf $(DESTDIR)$(gbdatadir)/control/$(COMPONENT);
@rm -rf $(DESTDIR)$(gbdatadir)/$(COMPONENT);
@rmdir $(DESTDIR)$(gbdatadir)/info >/dev/null 2>&1;
@rmdir $(DESTDIR)$(gbdatadir)/control >/dev/null 2>&1;
@rmdir $(DESTDIR)$(gbdatadir) >/dev/null 2>&1;
@rmdir $(DESTDIR)$(gblibdir) >/dev/null 2>&1;
@rmdir $(DESTDIR)$(gbdatadir)/info >/dev/null 2>&1 || true;
@rmdir $(DESTDIR)$(gbdatadir)/control >/dev/null 2>&1 || true;
@rmdir $(DESTDIR)$(gbdatadir) >/dev/null 2>&1 || true;
@rmdir $(DESTDIR)$(gblibdir) >/dev/null 2>&1 || true;
dist-hook:
@if test -d $(COMPONENT); then \
......
......@@ -63,9 +63,9 @@ uninstall-local:
@echo "Uninstalling runtime symbolic link"
@rm -f $(DESTDIR)$(bindir)/gbr$(GAMBAS_VERSION)
@rmdir $(DESTDIR)$(gbdatadir)/info >/dev/null 2>&1;
@rmdir $(DESTDIR)$(gbdatadir)/control >/dev/null 2>&1;
@rmdir $(DESTDIR)$(gbdatadir) >/dev/null 2>&1;
@rmdir $(DESTDIR)$(gbdatadir)/info >/dev/null 2>&1 || true;
@rmdir $(DESTDIR)$(gbdatadir)/control >/dev/null 2>&1 || true;
@rmdir $(DESTDIR)$(gbdatadir) >/dev/null 2>&1 || true;
dist-hook:
@rm -f $(distdir)/trunk_version.h
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment