All pastes #218304 Raw Edit

Stuff

public text v1 · immutable
#218304 ·published 2006-10-24 02:54 UTC
rendered paste body
#!/bin/bash
# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo/src/patchsets/mozilla-firefox/getpacks.sh,v 1.5 2006/10/23 18:56:03 genstef Exp ${app}/make-tarball.sh,v 1.2 2006/07/30 10:44:28 redhatter Exp $

PN=$1

if [[ $# -ne 3 ]] ; then
	echo "Usage: $0 <Please pass three arguemtns>"
	echo
	echo "Usage:$1 < Package name as it apears in portage>"
	echo "Usage:$2 <Specify package version your needing>"
	echo "Usage:$3 <Package name as it appears on mozilla's webservers>"
	exit 1
fi
PV=$2
MY_PV=${PV/_}
P=${PN}-${PV}
S=${P}-xpi

PNM=$3

mkdir ${S}
wget -P "${S}" -m -np -nd \
	"ftp://releases.mozilla.org/pub/mozilla.org/${PNM}/releases/${MY_PV}/linux-i686/xpi/"

cd ${S}
for f in *.xpi; do
	bn="$( basename "${f}" .xpi)"
	locales="${locales} ${bn}"
	mv -v "${f}" "${P}-${bn}.xpi"
done
cd "${OLDPWD}"
echo "Locales: ${locales}"