aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/source/Irrlicht/bzip2/bzdiff
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-01-13 17:24:39 +1000
committerDavid Walter Seikel2013-01-13 17:24:39 +1000
commit393b5cd1dc438872af89d334ef6e5fcc59f27d47 (patch)
tree6a14521219942a08a1b95cb2f5a923a9edd60f63 /libraries/irrlicht-1.8/source/Irrlicht/bzip2/bzdiff
parentAdd a note about rasters suggested start up code. (diff)
downloadSledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.zip
SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.gz
SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.bz2
SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.xz
Added Irrlicht 1.8, but without all the Windows binaries.
Diffstat (limited to '')
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/bzip2/bzdiff76
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/bzip2/bzdiff.147
2 files changed, 123 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/bzip2/bzdiff b/libraries/irrlicht-1.8/source/Irrlicht/bzip2/bzdiff
new file mode 100644
index 0000000..6fc38f9
--- /dev/null
+++ b/libraries/irrlicht-1.8/source/Irrlicht/bzip2/bzdiff
@@ -0,0 +1,76 @@
1#!/bin/sh
2# sh is buggy on RS/6000 AIX 3.2. Replace above line with #!/bin/ksh
3
4# Bzcmp/diff wrapped for bzip2,
5# adapted from zdiff by Philippe Troin <phil@fifi.org> for Debian GNU/Linux.
6
7# Bzcmp and bzdiff are used to invoke the cmp or the diff pro-
8# gram on compressed files. All options specified are passed
9# directly to cmp or diff. If only 1 file is specified, then
10# the files compared are file1 and an uncompressed file1.gz.
11# If two files are specified, then they are uncompressed (if
12# necessary) and fed to cmp or diff. The exit status from cmp
13# or diff is preserved.
14
15PATH="/usr/bin:/bin:$PATH"; export PATH
16prog=`echo $0 | sed 's|.*/||'`
17case "$prog" in
18 *cmp) comp=${CMP-cmp} ;;
19 *) comp=${DIFF-diff} ;;
20esac
21
22OPTIONS=
23FILES=
24for ARG
25do
26 case "$ARG" in
27 -*) OPTIONS="$OPTIONS $ARG";;
28 *) if test -f "$ARG"; then
29 FILES="$FILES $ARG"
30 else
31 echo "${prog}: $ARG not found or not a regular file"
32 exit 1
33 fi ;;
34 esac
35done
36if test -z "$FILES"; then
37 echo "Usage: $prog [${comp}_options] file [file]"
38 exit 1
39fi
40tmp=`mktemp ${TMPDIR:-/tmp}/bzdiff.XXXXXXXXXX` || {
41 echo 'cannot create a temporary file' >&2
42 exit 1
43}
44set $FILES
45if test $# -eq 1; then
46 FILE=`echo "$1" | sed 's/.bz2$//'`
47 bzip2 -cd "$FILE.bz2" | $comp $OPTIONS - "$FILE"
48 STAT="$?"
49
50elif test $# -eq 2; then
51 case "$1" in
52 *.bz2)
53 case "$2" in
54 *.bz2)
55 F=`echo "$2" | sed 's|.*/||;s|.bz2$||'`
56 bzip2 -cdfq "$2" > $tmp
57 bzip2 -cdfq "$1" | $comp $OPTIONS - $tmp
58 STAT="$?"
59 /bin/rm -f $tmp;;
60
61 *) bzip2 -cdfq "$1" | $comp $OPTIONS - "$2"
62 STAT="$?";;
63 esac;;
64 *) case "$2" in
65 *.bz2)
66 bzip2 -cdfq "$2" | $comp $OPTIONS "$1" -
67 STAT="$?";;
68 *) $comp $OPTIONS "$1" "$2"
69 STAT="$?";;
70 esac;;
71 esac
72 exit "$STAT"
73else
74 echo "Usage: $prog [${comp}_options] file [file]"
75 exit 1
76fi
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/bzip2/bzdiff.1 b/libraries/irrlicht-1.8/source/Irrlicht/bzip2/bzdiff.1
new file mode 100644
index 0000000..adb7a8e
--- /dev/null
+++ b/libraries/irrlicht-1.8/source/Irrlicht/bzip2/bzdiff.1
@@ -0,0 +1,47 @@
1\"Shamelessly copied from zmore.1 by Philippe Troin <phil@fifi.org>
2\"for Debian GNU/Linux
3.TH BZDIFF 1
4.SH NAME
5bzcmp, bzdiff \- compare bzip2 compressed files
6.SH SYNOPSIS
7.B bzcmp
8[ cmp_options ] file1
9[ file2 ]
10.br
11.B bzdiff
12[ diff_options ] file1
13[ file2 ]
14.SH DESCRIPTION
15.I Bzcmp
16and
17.I bzdiff
18are used to invoke the
19.I cmp
20or the
21.I diff
22program on bzip2 compressed files. All options specified are passed
23directly to
24.I cmp
25or
26.IR diff "."
27If only 1 file is specified, then the files compared are
28.I file1
29and an uncompressed
30.IR file1 ".bz2."
31If two files are specified, then they are uncompressed if necessary and fed to
32.I cmp
33or
34.IR diff "."
35The exit status from
36.I cmp
37or
38.I diff
39is preserved.
40.SH "SEE ALSO"
41cmp(1), diff(1), bzmore(1), bzless(1), bzgrep(1), bzip2(1)
42.SH BUGS
43Messages from the
44.I cmp
45or
46.I diff
47programs refer to temporary filenames instead of those specified.