]> git.saurik.com Git - apple/hfs.git/blame - tests/gen-dmg.sh
hfs-366.30.3.tar.gz
[apple/hfs.git] / tests / gen-dmg.sh
CommitLineData
558d2836
A
1#!/bin/bash
2
3# gen-dmg.sh
4# hfs
5#
6# Created by Max Holden on 11/3/15.
7#
8
9set -e
10
11mkdir -p "$DERIVED_FILE_DIR"
12env -i xcrun clang "$SRCROOT"/tests/img-to-c.c -lz -o "$DERIVED_FILE_DIR"/img-to-c
13
14"$DERIVED_FILE_DIR"/img-to-c -size 2g -type SPARSE -fs JHFS+ >"$1"
15
16echo "Created $1"