#286: ./run script have Perl run-time dependency. ------------------------------+--------------------------------------------- Reporter: bl...@… | Owner: wsanc...@… Type: Enhancement | Status: assigned Priority: 4: Nice to have | Milestone: Later Component: Calendar Server | Severity: Other Keywords: | ------------------------------+---------------------------------------------
Comment(by matth...@…): Hi. I've installed CalendarServer on Ubuntu and it took me an hour to figure out that xpath is used by run.sh to get config keys. It would be nice, if this would at least be mentioned as requirement, see #79. An error message that xpath is not installed would also be nice. Besides this, I had to change config_key to this: conf_read_key () { local key="$1"; shift; # FIXME: This only works for simple values (no arrays, dicts) tr '\n' ' ' < "${config}" \ | xpath -e "/plist/dict/*[preceding-sibling::key[1]='${key}'" 2> /dev/null \ | head -n 1 \ | sed -n 's|^<[^<][^<]*>\([^<]*\)</[^<][^<]*>.*$|\1|p'; } as xapth requires the "-e" flag and it returns two nodes. Thanks, Matthias Ringwald -- Ticket URL: <http://trac.calendarserver.org/ticket/286#comment:2> CalendarServer </> HTTP/WebDAV/CalDAV Server _______________________________________________ calendarserver-dev mailing list calendarserver-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/calendarserver-dev