summaryrefslogtreecommitdiff
path: root/contrib/plan9
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/plan9')
-rwxr-xr-xcontrib/plan9/9diff42
-rw-r--r--contrib/plan9/README39
-rw-r--r--contrib/plan9/hgrc.d/9diff.rc7
-rw-r--r--contrib/plan9/hgrc.d/factotum.rc4
-rw-r--r--contrib/plan9/mkfile37
-rw-r--r--contrib/plan9/proto24
6 files changed, 0 insertions, 153 deletions
diff --git a/contrib/plan9/9diff b/contrib/plan9/9diff
deleted file mode 100755
index 02af2a9..0000000
--- a/contrib/plan9/9diff
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/rc
-# 9diff - Mercurial extdiff wrapper for diff(1)
-
-rfork e
-
-fn getfiles {
- cd $1 &&
- for(f in `{du -as | awk '{print $2}'})
- test -f $f && echo `{cleanname $f}
-}
-
-fn usage {
- echo >[1=2] usage: 9diff [diff options] parent child root
- exit usage
-}
-
-opts=()
-while(~ $1 -*){
- opts=($opts $1)
- shift
-}
-if(! ~ $#* 3)
- usage
-
-# extdiff will set the parent and child to a single file if there is
-# only one change. If there are multiple changes, directories will be
-# set. diff(1) does not cope particularly with directories; instead we
-# do the recursion ourselves and diff each file individually.
-if(test -f $1)
- diff $opts $1 $2
-if not{
- # extdiff will create a snapshot of the working copy to prevent
- # conflicts during the diff. We circumvent this behavior by
- # diffing against the repository root to produce plumbable
- # output. This is antisocial.
- for(f in `{sort -u <{getfiles $1} <{getfiles $2}}){
- file1=$1/$f; test -f $file1 || file1=/dev/null
- file2=$3/$f; test -f $file2 || file2=/dev/null
- diff $opts $file1 $file2
- }
-}
-exit ''
diff --git a/contrib/plan9/README b/contrib/plan9/README
deleted file mode 100644
index 6adbf53..0000000
--- a/contrib/plan9/README
+++ /dev/null
@@ -1,39 +0,0 @@
-Mercurial for Plan 9 from Bell Labs
-===================================
-
-This directory contains support for Mercurial on Plan 9 from Bell Labs
-platforms. It is assumed that the version of Python running on these
-systems supports the ANSI/POSIX Environment (APE). At the time of this
-writing, the bichued/python port is the most commonly installed version
-of Python on these platforms. If a native port of Python is ever made,
-some minor modification will need to be made to support some of the more
-esoteric requirements of the platform rather than those currently made
-(cf. posix.py).
-
-By default, installations will have the factotum extension enabled; this
-extension permits factotum(4) to act as an authentication agent for
-HTTP repositories. Additionally, an extdiff command named 9diff is
-enabled which generates diff(1) compatible output suitable for use with
-the plumber(4).
-
-Commit messages are plumbed using E if no editor is defined; users must
-update the plumbed file to continue, otherwise the hg process must be
-interrupted.
-
-Some work remains with regard to documentation. Section 5 manual page
-references for hgignore and hgrc need to be re-numbered to section 6 (file
-formats) and a new man page writer should be written to support the
-Plan 9 man macro set. Until these issues can be resolved, manual pages
-are elided from the installation.
-
-Basic install:
-
- % mk install # do a system-wide install
- % hg debuginstall # sanity-check setup
- % hg # see help
-
-A proto(2) file is included in this directory as an example of how a
-binary distribution could be packaged, ostensibly with contrib(1).
-
-See http://mercurial.selenic.com/ for detailed installation
-instructions, platform-specific notes, and Mercurial user information.
diff --git a/contrib/plan9/hgrc.d/9diff.rc b/contrib/plan9/hgrc.d/9diff.rc
deleted file mode 100644
index 757e24c..0000000
--- a/contrib/plan9/hgrc.d/9diff.rc
+++ /dev/null
@@ -1,7 +0,0 @@
-# The 9diff extdiff command generates diff(1) compatible output
-# suitable for use with the plumber(4).
-[extensions]
-extdiff =
-
-[extdiff]
-9diff = 9diff -cm $parent $child $root
diff --git a/contrib/plan9/hgrc.d/factotum.rc b/contrib/plan9/hgrc.d/factotum.rc
deleted file mode 100644
index 0fa2334..0000000
--- a/contrib/plan9/hgrc.d/factotum.rc
+++ /dev/null
@@ -1,4 +0,0 @@
-# The factotum extension permits factotum(4) to act as an
-# authentication agent for HTTP repositories.
-[extensions]
-factotum =
diff --git a/contrib/plan9/mkfile b/contrib/plan9/mkfile
deleted file mode 100644
index 6d8e8c2..0000000
--- a/contrib/plan9/mkfile
+++ /dev/null
@@ -1,37 +0,0 @@
-APE=/sys/src/ape
-<$APE/config
-
-PYTHON=python
-PYTHONBIN=/rc/bin
-SH=ape/psh
-
-PURE=--pure
-ROOT=../..
-
-# This is slightly underhanded; Plan 9 does not support GNU gettext nor
-# does it support dynamically loaded extension modules. We work around
-# this by calling build_py and build_scripts directly; this avoids
-# additional platform hacks in setup.py.
-build:VQ:
- @{
- cd $ROOT
- $SH -c '$PYTHON setup.py $PURE build_py build_scripts'
- }
-
-clean:VQ:
- @{
- cd $ROOT
- $SH -c '$PYTHON setup.py $PURE clean --all'
- }
-
-install:VQ: build
- @{
- cd $ROOT
- $SH -c '$PYTHON setup.py $PURE install \
- --install-scripts $PYTHONBIN \
- --skip-build \
- --force'
- }
- mkdir -p /lib/mercurial/hgrc.d
- dircp hgrc.d /lib/mercurial/hgrc.d/
- cp 9diff /rc/bin/
diff --git a/contrib/plan9/proto b/contrib/plan9/proto
deleted file mode 100644
index 4355209..0000000
--- a/contrib/plan9/proto
+++ /dev/null
@@ -1,24 +0,0 @@
-lib - sys sys
- mercurial - sys sys
- hgrc.d - sys sys
- 9diff.rc - sys sys
- factotum.rc - sys sys
-rc - sys sys
- bin - sys sys
- 9diff - sys sys
- hg - sys sys
-sys - sys sys
- lib - sys sys
- python - sys sys
- lib - sys sys
- python2.5 - sys sys
- site-packages - sys sys
- hgext - sys sys
- + - sys sys
- mercurial - sys sys
- + - sys sys
- mercurial-VERSION-py2.5.egg-info - sys sys
- src - sys sys
- cmd - sys sys
- hg - sys sys
- + - sys sys