#!/bin/bash


# We're going to run this in the MacTeXDVD working directory...
WORK=`pwd`

# Build the package!
echo "Building the Installer package"
./../../PackageMaker.app/Contents/MacOS/PackageMaker  -build -p ${WORK}/MacTeX-2013-DVD.mpkg -ds -s \
	-mi ${WORK}/subpackages -r ${WORK}/resources -i ${WORK}/Info.plist -d ${WORK}/Description.plist
	

rm MacTeX-2013-DVD.mpkg/Contents/Info.plist
cp InfoGood.plist MacTeX-2013-DVD.mpkg/Contents/Info.plist


