blob: f86fafd851079ac8619b1c3b898e54145b906bab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/sh
# quiqk script to compare 32 and 64 IDX file
# usefull to compare dual CD and free32 and free64 dvd
TMPDIR=/tmp/compare_idx
if [ -z "$1" ]; then
echo "first arg must be a 32 IDX file"
exit 1
fi
if [ -z "$2" ]; then
echo "Second arg must be a 64 IDX file"
exit 1
fi
IDX32=$1
IDX64=$2
rm -rf $TMPDIR/*ok
mkdir -p $TMPDIR
cat $IDX32 | cut -d " " -f 2 | sed -e "s/i586//" | sort > $TMPDIR/IDX32_1_ok
cat $IDX64 | cut -d " " -f 2 | sed -e "s/x86_64//" | sed -e "s/\/lib64/\/lib/" | sort > $TMPDIR/IDX64_2_ok
diff -rau $TMPDIR/IDX32_1_ok $TMPDIR/IDX64_2_ok
|