Debian Codegraph @

contrib/plan9/mkfile

raw
1 APE=/sys/src/ape
2 <$APE/config
3
4 PYTHON=python
5 PYTHONBIN=/rc/bin
6 SH=ape/psh
7
8 PURE=--pure
9 ROOT=../..
10
11 # This is slightly underhanded; Plan 9 does not support GNU gettext nor
12 # does it support dynamically loaded extension modules. We work around
13 # this by calling build_py and build_scripts directly; this avoids
14 # additional platform hacks in setup.py.
15 build:VQ:
16 @{
17 cd $ROOT
18 $SH -c '$PYTHON setup.py $PURE build_py build_scripts'
19 }
20
21 clean:VQ:
22 @{
23 cd $ROOT
24 $SH -c '$PYTHON setup.py $PURE clean --all'
25 }
26
27 install:VQ: build
28 @{
29 cd $ROOT
30 $SH -c '$PYTHON setup.py $PURE install \
31 --install-scripts $PYTHONBIN \
32 --skip-build \
33 --force'
34 }
35 mkdir -p /lib/mercurial/hgrc.d
36 dircp hgrc.d /lib/mercurial/hgrc.d/
37 cp 9diff /rc/bin/