Difference between revisions of "Mc"

From CBLFS
Jump to navigationJump to search
m
Line 252: Line 252:
 
| is an internal file viewer.
 
| is an internal file viewer.
 
|}
 
|}
 +
 +
[[Category:General Utilities]]

Revision as of 13:59, 19 March 2009

Download Source: ftp://ftp.gnu.org/gnu/mc/mc-4.6.2-pre1.tar.gz
Recommended Patch: http://svn.cross-lfs.org/svn/repos/patches/mc-4.6.2/mc-4.6.2-pre1-debian_fixes-1.patch

Introduction to Mc

MC (Midnight Commander) is a text-mode full-screen file manager and visual shell. It provides a clear, user-friendly, and somewhat protected interface to a Unix system while making many frequent file operations more efficient and preserving the full power of the command prompt.

Project Homepage: http://www.ibiblio.org/pub/Linux/utils/file/managers/mc/

Dependencies

Required

Recommended

Optional

Non-Multilib

Compile the package:

patch -Np1 -i ../mc-4.6.2-pre1-debian_fixes-1.patch &&
CPPFLAGS="-DUTF8" \
./configure --prefix=/usr --sysconfdir=/etc \
   --libexecdir=/usr/lib --enable-mcfs \
   --enable-charset --enable-extcharset &&
make

To assist in the conversion of the manual pages to the proper encoding for the directory in which they are installed, the convert-mans script was written. It will convert manual pages to another encoding before (or after) installation. Install the convert-mans script with the following instructions:

cat >> convert-mans << "EOF"
#!/bin/sh -e
FROM="$1"
TO="$2"
shift ; shift
while [ $# -gt 0 ]
do
        FILE="$1"
        shift
        iconv -f "$FROM" -t "$TO" "$FILE" >.tmp.iconv
        mv .tmp.iconv "$FILE"
done
EOF
install -v -m755 convert-mans  /usr/bin

Convert docs to UTF-8:

convert-mans ISO-8859-1 UTF-8 lib/mc.hint{,.es,.it,.nl} &&
convert-mans ISO-8859-2 UTF-8 lib/mc.hint{.cs,.hu,.pl} &&
convert-mans ISO-8859-5 UTF-8 lib/mc.hint.sr &&
convert-mans KOI8-R UTF-8 lib/mc.hint.ru &&
convert-mans KOI8-U UTF-8 lib/mc.hint.uk &&
convert-mans BIG5 UTF-8 lib/mc.hint.zh &&
convert-mans ISO-8859-1 UTF-8 doc/{es,it}/mc.hlp.* &&
convert-mans ISO-8859-2 UTF-8 doc/{hu,pl}/mc.hlp.* &&
convert-mans ISO-8859-5 UTF-8 doc/sr/mc.hlp.sr &&
convert-mans KOI8-R UTF-8 doc/ru/mc.hlp.ru

Install the package

make install &&
install -v -m755 -d /etc/mc &&
install -v -m644 lib/mc.{ext,menu,lib} /etc/mc &&
chmod -v 1755 /usr/lib/mc/cons.saver

32Bit

Compile the package:

patch -Np1 -i ../mc-4.6.2-pre1-debian_fixes-1.patch &&
CC="gcc ${BUILD32}" CPPFLAGS="-DUTF8" \
./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib \
   --libexecdir=/usr/lib --enable-mcfs \
   --enable-charset --enable-extcharset &&
make

To assist in the conversion of the manual pages to the proper encoding for the directory in which they are installed, the convert-mans script was written. It will convert manual pages to another encoding before (or after) installation. Install the convert-mans script with the following instructions:

cat >> convert-mans << "EOF"
#!/bin/sh -e
FROM="$1"
TO="$2"
shift ; shift
while [ $# -gt 0 ]
do
        FILE="$1"
        shift
        iconv -f "$FROM" -t "$TO" "$FILE" >.tmp.iconv
        mv .tmp.iconv "$FILE"
done
EOF
install -v -m755 convert-mans  /usr/bin

Convert docs to UTF-8:

convert-mans ISO-8859-1 UTF-8 lib/mc.hint{,.es,.it,.nl} &&
convert-mans ISO-8859-2 UTF-8 lib/mc.hint{.cs,.hu,.pl} &&
convert-mans ISO-8859-5 UTF-8 lib/mc.hint.sr &&
convert-mans KOI8-R UTF-8 lib/mc.hint.ru &&
convert-mans KOI8-U UTF-8 lib/mc.hint.uk &&
convert-mans BIG5 UTF-8 lib/mc.hint.zh &&
convert-mans ISO-8859-1 UTF-8 doc/{es,it}/mc.hlp.* &&
convert-mans ISO-8859-2 UTF-8 doc/{hu,pl}/mc.hlp.* &&
convert-mans ISO-8859-5 UTF-8 doc/sr/mc.hlp.sr &&
convert-mans KOI8-R UTF-8 doc/ru/mc.hlp.ru

Install the package

make install &&
install -v -m755 -d /etc/mc &&
install -v -m644 lib/mc.{ext,menu,lib} /etc/mc &&
chmod -v 1755 /usr/lib/mc/cons.saver

N32

Compile the package:

patch -Np1 -i ../mc-4.6.2-pre1-debian_fixes-1.patch &&
CC="gcc ${BUILDN32}" CPPFLAGS="-DUTF8" \
./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib32 \
   --libexecdir=/usr/lib32 --enable-mcfs \
   --enable-charset --enable-extcharset &&
make

To assist in the conversion of the manual pages to the proper encoding for the directory in which they are installed, the convert-mans script was written. It will convert manual pages to another encoding before (or after) installation. Install the convert-mans script with the following instructions:

cat >> convert-mans << "EOF"
#!/bin/sh -e
FROM="$1"
TO="$2"
shift ; shift
while [ $# -gt 0 ]
do
        FILE="$1"
        shift
        iconv -f "$FROM" -t "$TO" "$FILE" >.tmp.iconv
        mv .tmp.iconv "$FILE"
done
EOF
install -v -m755 convert-mans  /usr/bin

Convert docs to UTF-8:

convert-mans ISO-8859-1 UTF-8 lib/mc.hint{,.es,.it,.nl} &&
convert-mans ISO-8859-2 UTF-8 lib/mc.hint{.cs,.hu,.pl} &&
convert-mans ISO-8859-5 UTF-8 lib/mc.hint.sr &&
convert-mans KOI8-R UTF-8 lib/mc.hint.ru &&
convert-mans KOI8-U UTF-8 lib/mc.hint.uk &&
convert-mans BIG5 UTF-8 lib/mc.hint.zh &&
convert-mans ISO-8859-1 UTF-8 doc/{es,it}/mc.hlp.* &&
convert-mans ISO-8859-2 UTF-8 doc/{hu,pl}/mc.hlp.* &&
convert-mans ISO-8859-5 UTF-8 doc/sr/mc.hlp.sr &&
convert-mans KOI8-R UTF-8 doc/ru/mc.hlp.ru

Install the package

make install &&
install -v -m755 -d /etc/mc &&
install -v -m644 lib/mc.{ext,menu,lib} /etc/mc &&
chmod -v 1755 /usr/lib32/mc/cons.saver

64Bit

Compile the package:

patch -Np1 -i ../mc-4.6.2-pre1-debian_fixes-1.patch &&
CC="gcc ${BUILD64}" CPPFLAGS="-DUTF8" \
./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib64 \
   --libexecdir=/usr/lib64 --enable-mcfs \
   --enable-charset --enable-extcharset &&
make

To assist in the conversion of the manual pages to the proper encoding for the directory in which they are installed, the convert-mans script was written. It will convert manual pages to another encoding before (or after) installation. Install the convert-mans script with the following instructions:

cat >> convert-mans << "EOF"
#!/bin/sh -e
FROM="$1"
TO="$2"
shift ; shift
while [ $# -gt 0 ]
do
        FILE="$1"
        shift
        iconv -f "$FROM" -t "$TO" "$FILE" >.tmp.iconv
        mv .tmp.iconv "$FILE"
done
EOF
install -v -m755 convert-mans  /usr/bin

Convert docs to UTF-8:

convert-mans ISO-8859-1 UTF-8 lib/mc.hint{,.es,.it,.nl} &&
convert-mans ISO-8859-2 UTF-8 lib/mc.hint{.cs,.hu,.pl} &&
convert-mans ISO-8859-5 UTF-8 lib/mc.hint.sr &&
convert-mans KOI8-R UTF-8 lib/mc.hint.ru &&
convert-mans KOI8-U UTF-8 lib/mc.hint.uk &&
convert-mans BIG5 UTF-8 lib/mc.hint.zh &&
convert-mans ISO-8859-1 UTF-8 doc/{es,it}/mc.hlp.* &&
convert-mans ISO-8859-2 UTF-8 doc/{hu,pl}/mc.hlp.* &&
convert-mans ISO-8859-5 UTF-8 doc/sr/mc.hlp.sr &&
convert-mans KOI8-R UTF-8 doc/ru/mc.hlp.ru

Install the package

make install &&
install -v -m755 -d /etc/mc &&
install -v -m644 lib/mc.{ext,menu,lib} /etc/mc &&
chmod -v 1755 /usr/lib64/mc/cons.saver

Contents

Installed Programs: cons.saver, mc, mcedit, mcmfmt, mcview
Installed Libraries: None
Installed Directories: /etc/mc, /usr/share/mc, /usr/lib/mc

Short Descriptions

cons.saver is used internally by mc for saving and restoring the text behind the panels on Linux text console.
mc is a visual shell.
mcedit is an internal file editor.
mcmfmt is used internally by mcview when viewing mailbox files.
mcview is an internal file viewer.
Retrieved from "?title=Mc&oldid=17246"