5 if [ "$TARGET" = "x86" ]; then
11 BOOT_IMAGE=boot.$CPU.image
12 wget http://factorcode.org/images/$VERSION/$BOOT_IMAGE
15 Factor.app/Contents/MacOS/factor -i=$BOOT_IMAGE -no-user-init
17 DISK_IMAGE_DIR=Factor-$VERSION
18 DISK_IMAGE=Factor-$VERSION-$TARGET.dmg
21 rm -rf $DISK_IMAGE_DIR
23 mkdir -p $DISK_IMAGE_DIR/Factor/
24 cp -R Factor.app $DISK_IMAGE_DIR/Factor/Factor.app
26 cp factor.image license.txt README.txt $DISK_IMAGE_DIR/Factor/
27 find core extra fonts misc unmaintained -type f \
28 -exec ./cp_dir {} $DISK_IMAGE_DIR/Factor/{} \;
29 hdiutil create -srcfolder "$DISK_IMAGE_DIR" -fs HFS+ \
30 -volname "$DISK_IMAGE_DIR" "$DISK_IMAGE"
32 ssh mkdir -p linode:w/downloads/$VERSION/
33 scp $DISK_IMAGE linode:w/downloads/$VERSION/