diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2010-11-27 17:42:46 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2010-11-27 17:42:46 +0000 |
commit | 82300a1549058f08a0208e2320bcf20bd4a875c8 (patch) | |
tree | 1c2cb85cb99bc8df0ed18a9aa4c7edc5fd35a962 /Mk | |
parent | - Mark BROKEN: bad plist (and should probably be updated to 1.2 to match (diff) |
- DESKTOP_ENTRIES: commandline is used to name installed .desktop file, this
can lead to files containing whitespace and funny characters; thus strip all
non-alphanumeric characters
PR: ports/147701 (adapted)
Submitted by: Warren Block <wblock@wonkity.com>
Notes
Notes:
svn path=/head/; revision=265288
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.port.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 6ff5a6971a53..fa3ffffc2480 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -6320,7 +6320,7 @@ install-desktop-entries: ${ECHO_CMD} "@cwd ${DESKTOPDIR}" >> ${TMPPLIST}; \ fi; \ while [ $$# -gt 6 ]; do \ - filename="$$4.desktop"; \ + filename="`${ECHO_CMD} "$$4" | ${TR} -cd [:alnum:]`.desktop"; \ pathname="${DESKTOPDIR}/$$filename"; \ categories="$$5"; \ if [ -z "$$categories" ]; then \ |