Index: branches/blackosx/package/Distribution
===================================================================
--- branches/blackosx/package/Distribution (revision 1625)
+++ branches/blackosx/package/Distribution (revision 1626)
@@ -33,7 +33,7 @@
function volCheckScript()
{
- system.log('volCheckScript: Passed.');
+ system.log('volCheckScript: Failed.');
return true;
}
Index: branches/blackosx/package/Scripts/Main/preinstall
===================================================================
--- branches/blackosx/package/Scripts/Main/preinstall (revision 0)
+++ branches/blackosx/package/Scripts/Main/preinstall (revision 1626)
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+echo "==============================================="
+echo "Pre-Install Script"
+echo "*********************************"
+echo "-----------------------------------------------"
+echo ""
+
+# Place holder for maybe setting up install log here?
+
+echo "==============================================="
+echo "END - Pre-Install Script"
+echo "*********************************"
+echo "-----------------------------------------------"
+echo ""
+
+exit 0
Property changes on: branches/blackosx/package/Scripts/Main/preinstall
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/blackosx/package/Resources/en.lproj/Localizable.strings
===================================================================
--- branches/blackosx/package/Resources/en.lproj/Localizable.strings (revision 1625)
+++ branches/blackosx/package/Resources/en.lproj/Localizable.strings (revision 1626)
@@ -11,7 +11,7 @@
/ / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
/ / B o o t l o a d e r
/ / - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- " C h a m e l e o n _ t i t l e " = " B o o t l o a d e r " ;
+ " C h a m e l e o n _ t i t l e " = " C h a m e l e o n B o o t l o a d e r " ;
" C h a m e l e o n _ d e s c r i p t i o n " = " C h a m e l e o n r e q u i r e s t h r e e e s s e n t i a l f i l e s . ( i n s i m p l e t e r m s )
b o o t 0 ( O n t h e d r i v e ' s M B R ) r e s p o n s i b l e f o r l o a d i n g b o o t 1 .
b o o t 1 ( O n t h e p a r t i t i o n ' s b o o t - s e c t o r ) t o f i n d i n g b o o t 2 .
Index: branches/blackosx/package/buildpkg.sh
===================================================================
--- branches/blackosx/package/buildpkg.sh (revision 1625)
+++ branches/blackosx/package/buildpkg.sh (revision 1626)
@@ -59,10 +59,22 @@
outline[$((outlinecount++))]="${indent[$xmlindent]}"
+# build pre install package
+# This is run before any other package - so this could
+# be a good place to initialise the install log???
+ echo "================= Preinstall ================="
+ ((xmlindent++))
+ packagesidentity="org.chameleon"
+ mkdir -p ${1}/Pre/Root
+ mkdir -p ${1}/Pre/Scripts
+ cp -f ${pkgroot}/Scripts/Main/preinstall ${1}/Pre/Scripts
+ echo " [BUILD] Pre "
+ buildpackage "${1}/Pre" "/" "" "start_visible=\"false\" start_selected=\"true\"" >/dev/null 2>&1
+# End build pre install package
+
# build core package
echo "================= Core ================="
- ((xmlindent++))
- packagesidentity="org.chameleon.core"
+ packagesidentity="org.chameleon"
mkdir -p ${1}/Core/Root/usr/local/bin
mkdir -p ${1}/Core/Root/usr/standalone/i386
ditto --noextattr --noqtn ${1%/*}/i386/boot ${1}/Core/Root/usr/standalone/i386
@@ -79,12 +91,14 @@
local coresize=$( du -hkc "${1}/Core/Root" | tail -n1 | awk {'print $1'} )
echo " [BUILD] i386 "
buildpackage "${1}/Core" "/" "0" "start_visible=\"false\" start_selected=\"true\"" >/dev/null 2>&1
-
+# End build core package
+
# build Chameleon package
echo "================= Chameleon ================="
- outline[$((outlinecount++))]="${indent[$xmlindent]}\t"
- choices[$((choicescount++))]="\n\n"
-
+ outline[$((outlinecount++))]="${indent[$xmlindent]}"
+ choices[$((choicescount++))]="\t\n\t\n"
+ ((xmlindent++))
+
# build standard package
mkdir -p ${1}/Standard/Root
mkdir -p ${1}/Standard/Scripts/Resources
@@ -116,7 +130,7 @@
# End build reset choice package
((xmlindent--))
- outline[$((outlinecount++))]="${indent[$xmlindent]}\t"
+ outline[$((outlinecount++))]="${indent[$xmlindent]}"
# End build Chameleon package
# build Modules package
@@ -131,8 +145,8 @@
###############################
if [ "$(ls -A "${1%/*}/i386/modules")" ]; then
{
- outline[$((outlinecount++))]="${indent[$xmlindent]}\t"
- choices[$((choicescount++))]="\n\n"
+ outline[$((outlinecount++))]="${indent[$xmlindent]}"
+ choices[$((choicescount++))]="\t\n\t\n"
((xmlindent++))
packagesidentity="org.chameleon.modules"
# -
@@ -174,7 +188,7 @@
fi
((xmlindent--))
- outline[$((outlinecount++))]="${indent[$xmlindent]}\t"
+ outline[$((outlinecount++))]="${indent[$xmlindent]}"
}
else
{
@@ -183,12 +197,11 @@
fi
# End build Modules packages
-
# build Extras package
# build options packages
- outline[$((outlinecount++))]="${indent[$xmlindent]}\t"
- choices[$((choicescount++))]="\n\n"
+ outline[$((outlinecount++))]="${indent[$xmlindent]}"
+ choices[$((choicescount++))]="\t\n\t\n"
((xmlindent++))
# ------------------------------------------------------
@@ -204,11 +217,11 @@
builtOptionsList=$( echo ${OptionalSettingsFiles[$i]%.txt} )
builtOptionsList=$( echo ${builtOptionsList##*/} )
echo "================= $builtOptionsList ================="
- outline[$((outlinecount++))]="${indent[$xmlindent]}\t"
- choices[$((choicescount++))]="\n\n"
+ outline[$((outlinecount++))]="${indent[$xmlindent]}"
+ choices[$((choicescount++))]="\t\n\t\n"
((xmlindent++))
packagesidentity="org.chameleon.options.$builtOptionsList"
-
+
# ------------------------------------------------------
# Read boot option file in to an array.
# ------------------------------------------------------
@@ -233,13 +246,13 @@
buildoptionalsettings "$1" "${exclusiveFlag}" "${exclusiveName}"
((xmlindent--))
- outline[$((outlinecount++))]="${indent[$xmlindent]}\t"
+ outline[$((outlinecount++))]="${indent[$xmlindent]}"
done
# build KeyLayout options packages
echo "================= Keymaps Options ================="
- outline[$((outlinecount++))]="${indent[$xmlindent]}\t"
- choices[$((choicescount++))]="\n\n"
+ outline[$((outlinecount++))]="${indent[$xmlindent]}"
+ choices[$((choicescount++))]="\t\n\t\n"
((xmlindent++))
packagesidentity="org.chameleon.options.keylayout"
@@ -260,19 +273,19 @@
buildoptionalsettings "$1" "0" "keylayout"
((xmlindent--))
- outline[$((outlinecount++))]="${indent[$xmlindent]}\t"
+ outline[$((outlinecount++))]="${indent[$xmlindent]}"
# End build KeyLayout options packages
((xmlindent--))
- outline[$((outlinecount++))]="${indent[$xmlindent]}\t"
+ outline[$((outlinecount++))]="${indent[$xmlindent]}"
# End build options packages
# build theme packages
echo "================= Themes ================="
- outline[$((outlinecount++))]="${indent[$xmlindent]}\t"
- choices[$((choicescount++))]="\n\n"
+ outline[$((outlinecount++))]="${indent[$xmlindent]}"
+ choices[$((choicescount++))]="\t\n\t\n"
((xmlindent++))
# Using themes section from Azi's/package branch.
@@ -289,12 +302,13 @@
done
((xmlindent--))
- outline[$((outlinecount++))]="${indent[$xmlindent]}\t"
+ outline[$((outlinecount++))]="${indent[$xmlindent]}"
# End build theme packages
# End build Extras package
# build post install package
echo "================= Post ================="
+ packagesidentity="org.chameleon"
mkdir -p ${1}/Post/Root
mkdir -p ${1}/Post/Scripts
cp -f ${pkgroot}/Scripts/Main/Post/* ${1}/Post/Scripts
@@ -303,11 +317,14 @@
ditto --noextattr --noqtn ${1%/*/*}/version ${1}/Post/Scripts/Resources/version
echo " [BUILD] Post "
buildpackage "${1}/Post" "/" "" "start_visible=\"false\" start_selected=\"true\"" >/dev/null 2>&1
- outline[$((outlinecount++))]="${indent[$xmlindent]}"
+# End build post install package
+((xmlindent--))
+outline[$((outlinecount++))]="${indent[$xmlindent]}"
+
# build meta package
- makedistribution "${1}" "${2}" "${3}" "${4}" "${5}"
+ makedistribution "${1}" "${2}" "${3}" "${4}" #"${5}"
# clean up
@@ -460,13 +477,14 @@
popd >/dev/null
- outline[$((outlinecount++))]="${indent[$xmlindent]}\t"
+ outline[$((outlinecount++))]="${indent[$xmlindent]}"
if [ "${4}" ]; then
- local choiceoptions="${indent[$xmlindent]}${4}\n"
+ local choiceoptions="\t\t${4}"
fi
- choices[$((choicescount++))]="\n\t#${packagename// /}.pkg\n\n"
-
+ #choices[$((choicescount++))]="\n\t#${packagename// /}.pkg\n\n"
+
+ choices[$((choicescount++))]="\t\n\t\t#${packagename// /}.pkg\n\t\n"
rm -R -f "${1}"
fi
}