[Lunar-commits] CVS: moonbase/editors/recode BUILD, NONE,
1.1 dos2unix, NONE, 1.1 unix2dos, NONE, 1.1
Auke Kok
sofar at lunar-linux.org
Tue Mar 15 13:38:53 UTC 2005
Update of /var/cvs/lunar/moonbase/editors/recode
In directory espresso.foo-projects.org:/home/sofar/active/moonbase/editors/recode
Added Files:
BUILD dos2unix unix2dos
Log Message:
Adding these std tools
--- NEW FILE: BUILD ---
(
default_build &&
install -m0755 $SCRIPT_DIRECTORY/dos2unix /usr/bin/ &&
install -m0755 $SCRIPT_DIRECTORY/unix2dos /usr/bin/
) > $C_FIFO 2>&1
--- NEW FILE: dos2unix ---
#!/bin/bash
if [ -z "$1" -o -z "$2" ]; then
echo "$0 requires two arguments: infile outfile"
exit 1
else
TMPFILE=$(mktemp)
cp "$1" $TMPFILE
recode --force IBMPC..Latin1 $TMPFILE
mv $TMPFILE "$2"
fi
--- NEW FILE: unix2dos ---
More information about the Lunar-commits
mailing list