File: make_dmg

package info (click to toggle)
wings3d 2.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 14,404 kB
  • sloc: erlang: 132,169; ansic: 3,779; lisp: 1,434; sh: 805; makefile: 794; cpp: 244; xml: 50
file content (23 lines) | stat: -rwxr-xr-x 524 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
#
#  make_dmg --
#
#     Packages the built Wings application into a .dmg file.
#
#  Copyright (c) 2002-2016 Bjorn Gustavsson
#
#  See the file "license.terms" for information on usage and redistribution
#  of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
#     $Id$
#

temp_dmg="wings-macosx.$$.dmg"
dmg="$1"
src="$2"
dst="$3"

rm -f $temp_dmg $dmg
hdiutil create -srcfolder $src -volname "Wings3D" -fs HFS+ -layout NONE -format UDBZ $temp_dmg
hdiutil convert "$temp_dmg" -format UDBZ -o $dmg
rm $temp_dmg