@for wox in $(WOXS); \
do $(XMLLINT-BIN) --noout $$wox || exit 1; \
done;
-
-mkinstall-dirs ::
- @if [ ! -d $(SOGO_TEMPLATESDIR) ]; then mkdir -p $(SOGO_TEMPLATESDIR); fi
- @for dir in $(TEMPLATE_DIRS); do \
- if [ ! -d $(SOGO_TEMPLATESDIR)/$$dir ]; then \
- echo Creating template directory \"$(SOGO_TEMPLATESDIR)/$$dir\"...; \
- mkdir $(SOGO_TEMPLATESDIR)/$$dir; \
- fi; \
- done
-
-install-files ::
- @echo Installing template files...
- @tar cf - $(WOXS) | ( cd $(SOGO_TEMPLATESDIR); tar xf -)
-
-install :: mkinstall-dirs install-files
+ @echo "Template files validated"
+
+install ::
+ @if [ -L "$(SOGO_TEMPLATESDIR)" ]; then \
+ echo "$(SOGO_TEMPLATESDIR) is a symbolic link (for development?). Installation skipped."; \
+ else \
+ if [ ! -d $(SOGO_TEMPLATESDIR) ]; then mkdir -p $(SOGO_TEMPLATESDIR); fi; \
+ for dir in $(TEMPLATE_DIRS); do \
+ if [ ! -d $(SOGO_TEMPLATESDIR)/$$dir ]; then \
+ echo Creating template directory \"$(SOGO_TEMPLATESDIR)/$$dir\"...; \
+ mkdir $(SOGO_TEMPLATESDIR)/$$dir; \
+ fi; \
+ done; \
+ echo Installing template files...; \
+ tar cf - $(WOXS) | ( cd $(SOGO_TEMPLATESDIR); tar xf -) ;\
+ fi
clean ::
if (nodes.length > 0) {
nodes[0].deselect();
var owner = nodes[0].getAttribute("owner");
- if (owner != UserLogin) {
- var folderId = nodes[0].getAttribute("id");
- unsubscribeFromFolder(folderId, owner, onFolderUnsubscribeCB, folderId);
- }
- else {
+ if (owner == UserLogin) {
+ var folderIdElements = nodes[0].getAttribute("id").split(":");
var abId = folderIdElements[0].substr(1);
deletePersonalAddressBook(abId);
var personal = $("/personal");
personal.selectElement();
onFolderSelectionChange();
}
+ else {
+ var folderId = nodes[0].getAttribute("id").substr("1");
+ unsubscribeFromFolder(folderId, owner, onFolderUnsubscribeCB, folderId);
+ }
}
preventDefault(event);
document.deletePersonalABAjaxRequest.aborted = true;
document.deletePersonalABAjaxRequest.abort();
}
- var url = ApplicationBaseURL + "/" + folderId + "/deleteFolder";
+ var url = ApplicationBaseURL + folderId + "/deleteFolder";
document.deletePersonalABAjaxRequest
= triggerAjaxRequest(url, deletePersonalAddressBookCallback,
folderId);
all ::
install ::
- @mkdir -p ${SOGO_WEBSERVERRESOURCESDIR}
- @cp $(WEBSERVER_RESOURCE_FILES) ${SOGO_WEBSERVERRESOURCESDIR}
+ @if [ -L "$(SOGO_WEBSERVERRESOURCESDIR)" ]; then \
+ echo "$(SOGO_WEBSERVERRESOURCESDIR) is a symbolic link (for development?). Installation skipped."; \
+ else \
+ mkdir -p $(SOGO_WEBSERVERRESOURCESDIR); \
+ cp $(WEBSERVER_RESOURCE_FILES) $(SOGO_WEBSERVERRESOURCESDIR); \
+ fi
clean ::