equal
deleted
inserted
replaced
38 echo " set position and custom icon" |
38 echo " set position and custom icon" |
39 echo " --app-drop-link x y" |
39 echo " --app-drop-link x y" |
40 echo " make a drop link to Applications, at location x,y" |
40 echo " make a drop link to Applications, at location x,y" |
41 echo " --eula eula_file" |
41 echo " --eula eula_file" |
42 echo " attach a license file to the dmg" |
42 echo " attach a license file to the dmg" |
|
43 echo " --no-internet-enable" |
|
44 echo " disable automatic mount©" |
43 echo " --version show tool version number" |
45 echo " --version show tool version number" |
44 echo " -h, --help display this help" |
46 echo " -h, --help display this help" |
45 exit 0 |
47 exit 0 |
46 } |
48 } |
47 |
49 |
94 " |
96 " |
95 shift; shift; shift;; |
97 shift; shift; shift;; |
96 --eula) |
98 --eula) |
97 EULA_RSRC=$2 |
99 EULA_RSRC=$2 |
98 shift; shift;; |
100 shift; shift;; |
|
101 --no-internet-enable) |
|
102 NOINERNET=1 |
|
103 shift;; |
99 -*) |
104 -*) |
100 echo "Unknown option $1. Run with --help for help." |
105 echo "Unknown option $1. Run with --help for help." |
101 exit 1;; |
106 exit 1;; |
102 esac |
107 esac |
103 done |
108 done |
204 if [ ! -z "${EULA_RSRC}" -a "${EULA_RSRC}" != "-null-" ]; then |
209 if [ ! -z "${EULA_RSRC}" -a "${EULA_RSRC}" != "-null-" ]; then |
205 echo "adding EULA resources" |
210 echo "adding EULA resources" |
206 "${AUX_PATH}/dmg-license.py" "${DMG_DIR}/${DMG_NAME}" "${EULA_RSRC}" |
211 "${AUX_PATH}/dmg-license.py" "${DMG_DIR}/${DMG_NAME}" "${EULA_RSRC}" |
207 fi |
212 fi |
208 |
213 |
|
214 if [ ! -z "${NOINERNET}" -a "${NOINERNET}" == 1 ]; then |
|
215 echo "not setting 'internet-enable' on the dmg" |
|
216 else |
|
217 hdiutil internet-enable -yes "${DMG_DIR}/${DMG_NAME}" |
|
218 fi |
|
219 |
209 echo "Disk image done" |
220 echo "Disk image done" |
210 exit 0 |
221 exit 0 |