2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
13 pushd $dir_name > /dev
/null
14 case $unpack_platform in
15 mac|mac-ppc|Darwin_ppc-gcc|Darwin_Universal-gcc3
)
18 echo "mounting $pkg_file"
19 echo "y" | PAGER
="/bin/cat" hdiutil attach
-quiet -puppetstrings -noautoopen -mountpoint .
/mnt
"$pkg_file" > /dev
/null
20 rsync
-a .
/mnt
/* $dir_name/
21 hdiutil detach mnt
> /dev
/null
25 7z x ..
/"$pkg_file" > /dev
/null
30 cp -rp optional
/* bin
/
34 unzip -o $file > /dev
/null
36 unzip -o ${locale}.xpi
> /dev
/null
39 linux-i686|linux|Linux_x86-gcc|Linux_x86-gcc3
)
40 if `echo $pkg_file | grep -q "tar.gz"`
42 tar xfz ..
/"$pkg_file" > /dev
/null
43 elif `echo $pkg_file | grep -q "tar.bz2"`
45 tar xfj ..
/"$pkg_file" > /dev
/null
47 echo "Unknown package type for file: $pkg_file"