Skip to content

Instantly share code, notes, and snippets.

@yukirii
Created April 10, 2015 15:04
Show Gist options
  • Save yukirii/4418a58f088e0be9a125 to your computer and use it in GitHub Desktop.
Save yukirii/4418a58f088e0be9a125 to your computer and use it in GitHub Desktop.
OS X でカレントディレクトリ以下のディレクトリを ISO(UDF) 化する
#!/bin/bash
files="`pwd`/*"
for filepath in $files; do
if [ -d $filepath ]; then
basename=$(basename $filepath)
echo "Create ISO file... ${basename}.iso"
hdiutil makehybrid -udf -o $basename $basename
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment