]> git.saurik.com Git - apple/hfs.git/blob - tests/gen-custom-dmg.sh
hfs-556.100.11.tar.gz
[apple/hfs.git] / tests / gen-custom-dmg.sh
1 #!/bin/sh
2 set -e
3
4 mkdir -p "$DERIVED_FILE_DIR"
5 env -i xcrun -sdk macosx.internal clang "$SRCROOT"/tests/generate-compressed-image.c -lz -o "$DERIVED_FILE_DIR"/generate-compressed-image
6
7 "$DERIVED_FILE_DIR"/generate-compressed-image -size 1g -type SPARSE -fs "$1" -uid 501 -gid 501 >"$2"
8
9 echo "Created $2 of type $1"