]> git.saurik.com Git - apple/hfs.git/blob - tests/gen-dmg.sh
0c5c1c972182d1823bcad77d5ccabe902db19da2
[apple/hfs.git] / tests / gen-dmg.sh
1 #!/bin/bash
2
3 # gen-dmg.sh
4 # hfs
5 #
6 # Created by Max Holden on 11/3/15.
7 #
8
9 set -e
10
11 mkdir -p "$DERIVED_FILE_DIR"
12 env -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
16 echo "Created $1"