Mercurial > pidgin.yaz
view pidgin/win32/nsis/rpm2zip.sh @ 30865:1cdae196aac8
Standardize on "cancelled".
QuLogic: so, canceled or cancelled? that patch on #12130 is pretty thorough...
wabz: cancelled :D
wabz: that cancelled thing actually bothered me in the past
wabz: never quite enough to do such a patch :p
elb: that's an en_US vs en_GB thing
elb: both are correct, but canceled is more common in en_{US,CA} and cancelled in en_{GB,AU,NZ,etc.}
elb: personally, I use cancelled
QuLogic: yea, that's what I went for before, but I think I couldn't change any strings because we were frozen
QuLogic: you all had to pick the spelling that was opposite from the guy's patch, didn't you...
rekkanoryo: well, considering we're generally en_US in our strings, it should be canceled in our source
elb: considering they're both correct, and while I'm anal retentive, I'm not anal retentive about that, I have no preference ;-)
rekkanoryo: I don't really care either way, I just think that we should be consistently en_US or en_GB throughout
elb: right
elb: my point is, they're both correct for en_US
elb: one 'l' is simply more common
rekkanoryo: ah
rekkanoryo: if they're both technically correct for en_US, then "cancelled" is my vote
rekkanoryo: one 'l' always looks wrong to me
elb: the dictionary claims they are
Sorry, dwc.
Closes #12130.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Mon, 23 Aug 2010 01:41:31 +0000 |
parents | 23b3627ecec3 |
children |
line wrap: on
line source
#!/bin/sh here=`pwd` for F in $*; do case $F in mingw32-*.noarch.rpm|mingw64-*.noarch.rpm|*/mingw32-*.noarch.rpm|*/mingw64-*.noarch.rpm) package=`rpm -qp $F 2>/dev/null` case $package in mingw32-*|mingw64-*) case $package in mingw32-*) cpu=i686 bits=32 ;; mingw64-*) cpu=x86_64 bits=64 ;; esac origname=`rpm -qp --queryformat='%{NAME}' $F 2>/dev/null` name=$origname case $name in *-devel) name=${name%el} ;; esac shortpackage="$name"_`rpm -qp --queryformat='%{VERSION}-%{RELEASE}'_win${bits} $F 2>/dev/null` shortpackage=${shortpackage#mingw32-} shortpackage=${shortpackage#mingw64-} shortname=$name shortname=${shortname#mingw32-} shortname=${shortname#mingw64-} tmp=`mktemp -d` #rpm2cpio $F | lzcat | (cd $tmp && cpio --quiet -id) rpm2cpio $F | (cd $tmp && cpio --quiet -id) ( cd $tmp zipfile="$here/$shortpackage.zip" rm -f $zipfile (cd usr/${cpu}-pc-mingw32/sys-root/mingw && zip -q -r -D $zipfile .) if [ -d usr/share/doc/packages/$origname ] ; then mv usr/share/doc/packages/$origname usr/share/doc/packages/$shortname (cd usr && zip -q -r -D $zipfile share/doc/packages/$shortname) fi mkdir -p manifest unzip -l $zipfile >manifest/$shortpackage.mft zip -q $zipfile manifest/$shortpackage.mft N=`unzip -l $zipfile | wc -l | sed -e 's/^ *\([0-9]*\).*/\1/'` Nm1=`expr $N - 1` unzip -l $zipfile | sed -e "1,3 d" -e "$Nm1,$N d" | awk '{print $4}' | grep -v -E '/$' >manifest/$shortpackage.mft zip -q $zipfile manifest/$shortpackage.mft echo $zipfile ) rm -rf $tmp ;; *) echo $F is not a mingw32/64 RPM package >&2 ;; esac ;; *) echo $F is not a mingw32/64 RPM package >&2 ;; esac done