ERROR: Slooooow dooooown... this page load was delayed.


dos2unix - Conversion utility that converts DOS/Win CR/LF to/from Unix LF ChangeLog

HOWTO


# Dos2Unix / Unix2Dos 7.4.0
# =========================
# If you have trouble with the download or home page URL, try here:
# http://sf.net/projects/dos2unix/

# Get it
cd
test -f installed/dos2unix-7.4.0.tar.gz &&
mv installed/dos2unix-7.4.0.tar.gz .
test ! -f dos2unix-7.4.0.tar.gz &&
wget https://waterlan.home.xs4all.nl/dos2unix/dos2unix-7.4.0.tar.gz

# Extract the source
mkdir -p -m 0700 ~/src
cd ~/src
find -maxdepth 1 -type d -name "dos2unix-*" -exec rm -r {} \;
tar xzvf ~/dos2unix-7.4.0.tar.gz
cd dos2unix-7.4.0
test $UID = 0 && chown -R root:root .
find -type f -exec chmod 644 {} \;

# Compile it
# If you do need translations, leave off ENABLE_NLS= here and below
make ENABLE_NLS=

# Become root to install it
su

# Install it
make install prefix=/usr/local docdir=/usr/local/doc/dos2unix-7.4.0 \
mandir=/usr/local/man ENABLE_NLS=

# Make sure your non-root user can remove the source later
chown -R $(logname) .
chmod -R u+w .

# Become your non-root user again
exit

# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/dos2unix-*.tar.*
mv dos2unix-7.4.0.tar.gz installed/


# If you ever want to uninstall Dos2Unix, this should do it:
# (make uninstall as root should be enough, but the rest is just in case...)
cd
su
test -d src/dos2unix-* && ( cd src/dos2unix-* ; make uninstall )
for pfx in /usr /usr/local;
do
  find ${pfx}/doc -type d -name "dos2unix-*" -exec rm -r {} \;  
  for prog in dos2unix mac2unix unix2dos unix2mac;
  do
    find ${pfx}/locale -type f -name ${prog}.mo
    find ${pfx}/share/locale -type f -name ${prog}.mo
    rm -f ${pfx}/bin/${prog} ${pfx}/man/man1/${prog}.1 \
     ${pfx}/man/man1/${prog}.1
  done
done
exit
find ~/src -maxdepth 1 -type d -name "dos2unix-*" -exec rm -r {} \;
rm -f ~/installed/dos2unix-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EST -0500)
HOWTO last updated: 2019-02-05 2:46pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]