Check-in [578368c8b1]
Overview
Comment:Modified OSX cackey build script to support automatically generating UUIDs
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 578368c8b147594148bd06c1d13e819326f631e5
User & Date: kvanals on 2010-07-24 18:56:00
Other Links: manifest | tags
Context
2010-07-26
05:07
Removing pmdoc files in favor of Template for CACKey OSX build. Updated OSX build script to handle this. check-in: 01d1fb838f user: kvanals tags: trunk
2010-07-24
18:56
Modified OSX cackey build script to support automatically generating UUIDs check-in: 578368c8b1 user: kvanals tags: trunk
18:47
Started preliminary work to support PackageMaker templates for CACKey builds check-in: 34f573e3f8 user: kvanals tags: trunk
Changes

Modified build/cackey_osx_build/build_osx.sh from [2b8374712c] to [9f47b8a584].

159
160
161
162
163
164
165

166
167

168
169
170
171
172
173
174
	rm macbuild/${OSX}/libcackey*.dylib.*
}

# Function to build Mac OS X Packages
pkgbuild() {
	rm -f build/cackey_osx_build/cackey.dylib
	ln macbuild/${OSX}/libcackey.dylib build/cackey_osx_build/cackey.dylib

	for PMDOC in build/cackey_osx_build/${OSX}_pmbuild.pmdoc/*.in; do
		PMDOC="`echo "${PMDOC}" | sed 's_.in__g'`"

		sed "s|@@BUILDROOTDIR@@|$(pwd)|g" ${PMDOC}.in > ${PMDOC}
		sed "s|@@OSXVERSION@@|${OSX}|g" ${PMDOC}.in > ${PMDOC}
		sed "s|@@UUID@@|${UUID}|g" ${PMDOC}.in > ${PMDOC}
		sed "s|@@TARGETOS@@|${PKTARGETOS}|g" ${PMDOC}.in > ${PMDOC}
		sed "s|@@NEXTOSXVER@@|${NEXTOSXVER}|g" ${PMDOC}.in > ${PMDOC}
		sed "s|@@CUROSXVER@@|${CUROSXVER}|g" ${PMDOC}.in > ${PMDOC}
	done







>


>







159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
	rm macbuild/${OSX}/libcackey*.dylib.*
}

# Function to build Mac OS X Packages
pkgbuild() {
	rm -f build/cackey_osx_build/cackey.dylib
	ln macbuild/${OSX}/libcackey.dylib build/cackey_osx_build/cackey.dylib
	# When Template build is ready to go, change ${OSX} to Template in line below
	for PMDOC in build/cackey_osx_build/${OSX}_pmbuild.pmdoc/*.in; do
		PMDOC="`echo "${PMDOC}" | sed 's_.in__g'`"
		UUID="`python -c 'import uuid; print uuid.uuid1()' | dd conv=ucase 2>/dev/null`"
		sed "s|@@BUILDROOTDIR@@|$(pwd)|g" ${PMDOC}.in > ${PMDOC}
		sed "s|@@OSXVERSION@@|${OSX}|g" ${PMDOC}.in > ${PMDOC}
		sed "s|@@UUID@@|${UUID}|g" ${PMDOC}.in > ${PMDOC}
		sed "s|@@TARGETOS@@|${PKTARGETOS}|g" ${PMDOC}.in > ${PMDOC}
		sed "s|@@NEXTOSXVER@@|${NEXTOSXVER}|g" ${PMDOC}.in > ${PMDOC}
		sed "s|@@CUROSXVER@@|${CUROSXVER}|g" ${PMDOC}.in > ${PMDOC}
	done