gecko-dev/testing/release/common/unpack.sh

36 lines
831 B
Bash
Raw Normal View History

2006-07-28 21:00:11 +00:00
#!/bin/bash
unpack_build () {
platform="$1"
dir_name="$2"
pkg_file="$3"
mkdir -p $dir_name
pushd $dir_name > /dev/null
case $platform in
mac|mac-ppc)
cd ../
mkdir -p mnt
2006-08-01 21:47:09 +00:00
echo "y" | PAGER="/bin/cat" hdiutil attach \
2006-08-01 21:48:17 +00:00
-quiet -puppetstrings -noautoopen \
-mountpoint ./mnt "$pkg_file" > /dev/null
2006-07-28 21:00:11 +00:00
rsync -a ./mnt/* $dir_name/
2006-08-01 21:47:09 +00:00
hdiutil detach mnt > /dev/null
2006-07-28 21:00:11 +00:00
cd $dir_name
;;
win32)
/usr/local/bin/7za x ../"$pkg_file" > /dev/null
for file in *.xpi
do
unzip -o $file > /dev/null
done
;;
linux)
tar xfvz ../"$pkg_file" > /dev/null
;;
esac
popd > /dev/null
}