]> git.saurik.com Git - apple/hfs.git/blob - tests/gen-dmg.sh
92d1122c1f88fbcf8d7ce013d7ff1b86decdeb6c
[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+ -uid 501 -gid 501 >"$1"
15
16 echo "Created $1"