summaryrefslogtreecommitdiff
path: root/backend/dep/build_ikiwiki.sh
blob: 52543f397a552af0991028797886bfeada4499cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash

SCRIPTDIR="$( cd "$( dirname "$0" )" >/dev/null 2>&1 && pwd )"

cd "$SCRIPTDIR"/ikiwiki &&
HOME="$SCRIPTDIR/prefix" PERL5LIB="$(pwd):$(pwd)/cpan" PERL_MM_USE_DEFAULT=1 perl -MCPAN -MCPAN::MyConfig -e 'CPAN::Shell->notest("install", "Bundle::IkiWiki")' &&
#PERL5LIB="$(pwd):$(pwd)/cpan" PERL_MM_USE_DEFAULT=1 perl -MCPAN -MCPAN::MyConfig -e 'CPAN::Shell->notest("install", "Bundle::IkiWiki::Extras")' &&
#perl Makefile.PL PREFIX="$(pwd)/.." INSTALL_BASE="$(pwd)/.." &&
PERL5LIB="$SCRIPTDIR/prefix/lib/perl5" perl Makefile.PL PREFIX="$SCRIPTDIR/prefix" INSTALL_BASE= &&
make &&
make install PREFIX="$SCRIPTDIR/prefix" &&

echo To run ikiwiki: &&
echo "$SCRIPTDIR/prefix/bin/ikiwiki"