]> git.saurik.com Git - apple/hfs.git/blob - tests/gen-dmg.sh
hfs-522.0.9.tar.gz
[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 -sdk macosx.internal 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"