Changeset 17364
- Timestamp:
- 05/08/06 06:40:51 (3 years ago)
- Files:
-
- 1 modified
-
haiku/trunk/build/scripts/build_haiku_image (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
haiku/trunk/build/scripts/build_haiku_image
r17344 r17364 81 81 $mkdir -p $mimeDBDest 82 82 mkdir -p $tmpDir 83 mimeTmpDir=$tmpDir/mime 84 mimeTmpIndex=0 85 86 # create tmp dir for the MIME conversion stuff 87 mkdir -p $mimeTmpDir 83 88 84 89 echo "Installing MIME database ..." … … 89 94 90 95 # compile rdef to rsrc file and the rsrc file to attributes 91 tmpFile=$tmpDir/mimedb$$.rsrc 92 tmpFile2=$tmpDir/mimedb$$.mime 96 mimeTmpIndex=$[$mimeTmpIndex + 1] 97 tmpFile=$mimeTmpDir/mimedb$$_${mimeTmpIndex}.rsrc 98 tmpFile2=$mimeTmpDir/mimedb$$_${mimeTmpIndex}.mime 93 99 $rc -o $tmpFile $inSuperFile 94 100 mkdir -p $tmpFile2 95 101 $resattr -O -o $tmpFile2 $tmpFile 96 102 $cp -r ${sPrefix}$tmpFile2 $outSuperDir 97 rm -rf $tmpFile $tmpFile298 103 99 104 # iterate through the sub types … … 105 110 106 111 # compile rdef to rsrc file and the rsrc file to attributes 107 tmpFile=$tmpDir/mimedb$$.rsrc 108 tmpFile2=$tmpDir/mimedb$$.mime 112 mimeTmpIndex=$[$mimeTmpIndex + 1] 113 tmpFile=$mimeTmpDir/mimedb$$_${mimeTmpIndex}.rsrc 114 tmpFile2=$mimeTmpDir/mimedb$$_${mimeTmpIndex}.mime 109 115 $rc -o $tmpFile $inSubFile 110 116 $resattr -O -o $tmpFile2 $tmpFile 111 117 $cp ${sPrefix}$tmpFile2 $outSubFile 112 rm -f $tmpFile $tmpFile2113 118 fi 114 119 done 115 120 done 116 121 122 # cleanup tmp dir 123 rm -rf $mimeTmpDir 117 124 118 125 # unmount
