diff options
-rw-r--r-- | man/es/man1/dos2unix.pod | 11 | ||||
-rw-r--r-- | packaging/dos2unix.spec | 5 |
2 files changed, 14 insertions, 2 deletions
diff --git a/man/es/man1/dos2unix.pod b/man/es/man1/dos2unix.pod index 3896bb2..bbf14b6 100644 --- a/man/es/man1/dos2unix.pod +++ b/man/es/man1/dos2unix.pod @@ -739,6 +739,17 @@ type: find . -name '*.txt' -print0 |xargs -0 dos2unix +The find(1) option C<-print0> and corresponding xargs(1) option C<-0> are +needed when there are files with spaces or quotes in the name. Otherwise +these options can be omitted. Another option is to use find(1) with the +C<-exec> option: + + find . -name '*.txt' -exec dos2unix {} \; + +In a Windows Command Prompt the following command can be used: + + for /R %G in (*.txt) do dos2unix "%G" + PowerShell users can use the following command in Windows PowerShell: get-childitem -path . -filter '*.txt' -recurse | foreach-object {dos2unix $_.Fullname} diff --git a/packaging/dos2unix.spec b/packaging/dos2unix.spec index d44c5cf..a4d68ff 100644 --- a/packaging/dos2unix.spec +++ b/packaging/dos2unix.spec @@ -1,5 +1,5 @@ Name: dos2unix -Version: 7.3.4 +Version: 7.3.5 Release: 0 License: BSD-3-Clause Summary: Text converters to and from DOS/MAC to UNIX @@ -22,12 +22,13 @@ format to DOS format and unix2dos converts from UNIX to MAC format. %prep %setup -q cp %{SOURCE1001} . -find . -type f | xargs chmod -x +#find . -type f | xargs chmod -x %build export RPM_OPT_FLAGS make %{?_smp_mflags} CC="gcc" HTMLEXT="html" + %install %make_install docdir=%{_defaultdocdir}/%{name} %{find_lang} dos2unix --all-name --with-man |