aboutsummaryrefslogtreecommitdiffhomepage
path: root/build_tools/make_pkg.sh
blob: fd34c5ae8c9c9d8b0e72c0f21de8a7fa79e08f7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh -x

rm -rf /tmp/fish_pkg
mkdir -p /tmp/fish_pkg/
if make install prefix=/tmp/fish_pkg/usr/local/
then
	echo "Root written to /tmp/fish_pkg/"
	if pkgbuild --identifier com.ridiculousfish.fish-shell --scripts build_tools/osx_package_scripts/ --root /tmp/fish_pkg/ ~/fish_installer.pkg
	then
		echo "Package written to ~/fish_installer.pkg"
	else
		echo "Package could not be written"
	fi
	
else
	echo "Root could not be written"
fi