[80242] contrib/mpab
jmr at macports.org
jmr at macports.org
Thu Jul 7 09:33:44 PDT 2011
Revision: 80242
http://trac.macports.org/changeset/80242
Author: jmr at macports.org
Date: 2011-07-07 09:33:44 -0700 (Thu, 07 Jul 2011)
Log Message:
-----------
mpab: restrict svn checkout to base and dports, and look at BASE_UPDATE env var that specifies how to update the base install
Modified Paths:
--------------
contrib/mpab/mpexport.sh
contrib/mpab/mpsync.sh
Added Paths:
-----------
contrib/mpab/chroot-scripts/selfupdate
Added: contrib/mpab/chroot-scripts/selfupdate
===================================================================
--- contrib/mpab/chroot-scripts/selfupdate (rev 0)
+++ contrib/mpab/chroot-scripts/selfupdate 2011-07-07 16:33:44 UTC (rev 80242)
@@ -0,0 +1,10 @@
+#!/bin/sh
+#
+# selfupdate MacPorts in the chroot
+#
+
+if [[ -z "$PREFIX" ]]; then
+ PREFIX=/opt/local
+fi
+
+${PREFIX}/bin/port selfupdate
Property changes on: contrib/mpab/chroot-scripts/selfupdate
___________________________________________________________________
Added: svn:executable
+ *
Modified: contrib/mpab/mpexport.sh
===================================================================
--- contrib/mpab/mpexport.sh 2011-07-07 16:27:57 UTC (rev 80241)
+++ contrib/mpab/mpexport.sh 2011-07-07 16:33:44 UTC (rev 80242)
@@ -1,5 +1,7 @@
-#/bin/sh
-svn checkout -r HEAD https://svn.macports.org/repository/macports/trunk mpexport
+#!/bin/sh
+mkdir -p mpexport
+svn checkout --non-interactive -r HEAD https://svn.macports.org/repository/macports/trunk/base mpexport/base
+svn checkout --non-interactive -r HEAD https://svn.macports.org/repository/macports/trunk/dports mpexport/dports
cd mpexport
tar c --exclude '.svn' -f - . | bzip2 -c > ../macports_dist.tar.bz2
cd ..
Modified: contrib/mpab/mpsync.sh
===================================================================
--- contrib/mpab/mpsync.sh 2011-07-07 16:27:57 UTC (rev 80241)
+++ contrib/mpab/mpsync.sh 2011-07-07 16:33:44 UTC (rev 80242)
@@ -45,12 +45,18 @@
if [[ -d ${dataDir}/${exportDir} ]] ; then
svn update --non-interactive \
- -r HEAD ${dataDir}/${exportDir}/* || exit 1
+ -r HEAD ${dataDir}/${exportDir}/base || exit 1
+ svn update --non-interactive \
+ -r HEAD ${dataDir}/${exportDir}/dports || exit 1
else
echo "Checking out macports from svn..."
+ mkdir -p ${dataDir}/${exportDir}
svn checkout --non-interactive -r HEAD \
- https://svn.macports.org/repository/macports/trunk \
- ${dataDir}/${exportDir} || exit 1
+ https://svn.macports.org/repository/macports/trunk/base \
+ ${dataDir}/${exportDir}/base || exit 1
+ svn checkout --non-interactive -r HEAD \
+ https://svn.macports.org/repository/macports/trunk/dports \
+ ${dataDir}/${exportDir}/dports || exit 1
fi
if [[ -n "$chrootPath" && ! -d "$chrootPath" ]] ; then
@@ -65,6 +71,12 @@
echo "Re-creating portindex"
chroot_exec recreateportindex
+if [[ "$BASE_UPDATE" == "selfupdate" ]]; then
+ chroot_exec selfupdate
+elif [[ "$BASE_UPDATE" == "svn" ]]; then
+ chroot_exec installmacports
+fi
+
if [[ "${umount}" = yes ]] ; then
sudo ${baseDir}/mpab umount || exit 1
fi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110707/21e12fcf/attachment-0001.html>
More information about the macports-changes
mailing list