Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148474851
D5607.id14232.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D5607.id14232.diff
View Options
Index: Mk/Uses/dos2unix.mk
===================================================================
--- Mk/Uses/dos2unix.mk
+++ Mk/Uses/dos2unix.mk
@@ -15,22 +15,24 @@
_DOS2UNIX_ALL= yes
.endif
+DOS2UNIX_WRKSRC?= ${WRKSRC}
+
_USES_patch+= 200:dos2unix
dos2unix:
@${ECHO_MSG} "===> Converting DOS text files to UNIX text files"
.if defined(_DOS2UNIX_ALL)
- @${FIND} ${WRKSRC} -type f -print0 | \
+ @${FIND} ${DOS2UNIX_WRKSRC} -type f -print0 | \
${XARGS} -0 ${SED} -i '' -e 's/ $$//'
.else
.if defined(DOS2UNIX_FILES)
- @(cd ${WRKSRC}; \
+ @(cd ${DOS2UNIX_WRKSRC}; \
${ECHO_CMD} ${DOS2UNIX_FILES} | ${XARGS} ${SED} -i '' -e 's/ $$//' )
.elif defined(DOS2UNIX_REGEX)
- @${FIND} -E ${WRKSRC} -type f -iregex '${DOS2UNIX_REGEX}' -print0 | \
+ @${FIND} -E ${DOS2UNIX_WRKSRC} -type f -iregex '${DOS2UNIX_REGEX}' -print0 | \
${XARGS} -0 ${SED} -i '' -e 's/ $$//'
.else
.for f in ${DOS2UNIX_GLOB}
- @${FIND} ${WRKSRC} -type f -name '${f}' -print0 | \
+ @${FIND} ${DOS2UNIX_WRKSRC} -type f -name '${f}' -print0 | \
${XARGS} -0 ${SED} -i '' -e 's/ $$//'
.endfor
.endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 19, 3:34 AM (4 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29942779
Default Alt Text
D5607.id14232.diff (1 KB)
Attached To
Mode
D5607: Allow overriding WRKSRC for USES=dos2unix
Attached
Detach File
Event Timeline
Log In to Comment