summaryrefslogtreecommitdiff
path: root/backend/dep/build_ikiwiki.sh
blob: 56f632521aa0fb2d4b7cad4ed7aaf17287b506b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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)/.." &&
perl Makefile.PL PREFIX= INSTALL_BASE="$SCRIPTDIR/prefix" &&
make &&

echo To run ikiwiki: &&
echo "PERL5LIB='$SCRIPTDIR/prefix' '$(pwd)/'ikiwiki.out"