Created
April 10, 2015 15:04
-
-
Save yukirii/4418a58f088e0be9a125 to your computer and use it in GitHub Desktop.
OS X でカレントディレクトリ以下のディレクトリを ISO(UDF) 化する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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