* Modified AddVariableToScript to support multi-element arrays.
* Added rule AddSourceDirectoryToHaikuImage to copy source directories onto the image. They will be placed in /boot/home/HaikuSource/... according to their relative path. This should make it a bit more comfortable to use gdb as a source level debugger. Alas, the directories have to be made known to gdb individually (with the "directory" command). I guess we should update to 6.6... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20415 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
# imagePath
|
||||
# imageSize
|
||||
# addBuildCompatibilityLibDir
|
||||
# sourceDirsToCopy
|
||||
#
|
||||
# bfsShell
|
||||
# copyattr
|
||||
@@ -122,6 +123,36 @@ done
|
||||
# cleanup tmp dir
|
||||
rm -rf $mimeTmpDir
|
||||
|
||||
|
||||
# install sources
|
||||
|
||||
sourcesDest=${tPrefix}home/HaikuSources
|
||||
|
||||
# create sources directory
|
||||
if [ -n "${sourceDirsToCopy}" ]; then
|
||||
echo "Installing Haiku Sources ..."
|
||||
|
||||
$mkdir -p ${sourcesDest}
|
||||
fi
|
||||
|
||||
for sourcesDir in ${sourceDirsToCopy}; do
|
||||
echo " sources dir: ${sourcesDir}"
|
||||
|
||||
# create all subdirectories
|
||||
subDirs=$(find ${sourcesDir} -type d | grep -v '.svn' |
|
||||
sed -e "s@^${sourceDir}@${sourcesDest}@")
|
||||
$mkdir -p ${subDirs}
|
||||
|
||||
# get all files and copy each one individually
|
||||
sourceFiles=$(find $sourcesDir -type f | grep -v '.svn')
|
||||
for sourceFile in $sourceFiles; do
|
||||
destSourceFile=$(echo $sourceFile |
|
||||
sed -e "s@^${sourceDir}@${sourcesDest}@")
|
||||
$cp ${sPrefix}$sourceFile $destSourceFile
|
||||
done
|
||||
done
|
||||
|
||||
|
||||
# unmount
|
||||
if [ $isImage ]; then
|
||||
echo "Unmounting ..."
|
||||
|
||||
Reference in New Issue
Block a user