Start work on single-headed way of doing things - merge debian into default
authorPaul Crowley <paul@lshift.net>
Wed, 07 Sep 2011 10:56:24 +0100
changeset 326 b44dd7bad82c
parent 324 36400dcefb67 (diff)
parent 325 ed581082bb66 (current diff)
child 327 6f2a3f251d3b
Start work on single-headed way of doing things - merge debian into default
dev/chroot-test/action/install-installables
dev/chroot-test/action/refresh-auth
dev/chroot-test/copy-installables
--- a/dev/chroot-test/action/install-installables	Wed Sep 07 10:41:21 2011 +0100
+++ b/dev/chroot-test/action/install-installables	Wed Sep 07 10:56:24 2011 +0100
@@ -1,4 +1,12 @@
-aptitude --allow-untrusted --quiet --without-recommends --assume-yes  install \
-     debconf python python-support adduser openssh-server ucf
-echo dpkg -i /var/cache/apt/archives/mercurial-common_*.deb /var/cache/apt/archives/mercurial_*.deb *.deb
-dpkg -i /var/cache/apt/archives/mercurial-common_*.deb /var/cache/apt/archives/mercurial_*.deb *.deb
+if $CHROOT_TEST_INSTALLDEB ; then
+    aptitude --allow-untrusted --quiet --without-recommends --assume-yes  install \
+         debconf python python-support adduser openssh-server ucf
+    echo dpkg -i /var/cache/apt/archives/mercurial-common_*.deb /var/cache/apt/archives/mercurial_*.deb *.deb
+    dpkg -i /var/cache/apt/archives/mercurial-common_*.deb /var/cache/apt/archives/mercurial_*.deb *.deb
+else
+    aptitude --allow-untrusted --quiet --without-recommends --assume-yes  install \
+        make mercurial xsltproc docbook-xsl openssh-server \
+        python python-support adduser
+    cd mercurial-server
+    make setup-adduser
+fi
--- a/dev/chroot-test/action/refresh-auth	Wed Sep 07 10:41:21 2011 +0100
+++ b/dev/chroot-test/action/refresh-auth	Wed Sep 07 10:56:24 2011 +0100
@@ -2,4 +2,10 @@
 
 set -e
 
-/usr/share/mercurial-server/refresh-auth
+. /action/env
+
+if $CHROOT_TEST_INSTALLDEB ; then
+    /usr/share/mercurial-server/refresh-auth
+else
+    /usr/local/share/mercurial-server/refresh-auth
+fi
--- a/dev/chroot-test/copy-installables	Wed Sep 07 10:41:21 2011 +0100
+++ b/dev/chroot-test/copy-installables	Wed Sep 07 10:56:24 2011 +0100
@@ -1,1 +1,6 @@
-cp build/debian/*.deb $BACKING/action
+if $CHROOT_TEST_INSTALLDEB ; then
+    cp build/debian/*.deb $BACKING/action
+else
+    hg st -mac0n -X '.hg*' -X 'dev/**' \
+        | cpio -p -0 -d $BACKING/action/mercurial-server
+fi