File: comparejar

package info (click to toggle)
mozilla-thunderbird-locale-fr 1.0.dfsg-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,160 kB
  • ctags: 31
  • sloc: makefile: 43; perl: 36; sh: 29
file content (16 lines) | stat: -rwxr-xr-x 442 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

if [ $# != 2 ]; then
    echo "Mauvais nombre d'argument";
    exit;
fi

EN_NAME="en-US-jar-comp"
FR_NAME="fr-FR-jar-comp"

unzip -l $1 | awk '{ print $4 }' | sort | grep 'locale' > $EN_NAME
unzip -l $2 | awk '{ print $4 }' | sed 's/fr-FR/en-US/gi' | sed 's/fr-unix/en-unix/g' | sed 's/fr-win/en-win/g' | sed 's/fr-mac/en-mac/g' | sed 's/FR/US/g' | sort | grep 'locale' > $FR_NAME

diff -aur $FR_NAME $EN_NAME

rm $EN_NAME $FR_NAME