summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorIkiWiki <ikiwiki.info>2020-03-03 03:08:02 -0500
committerIkiWiki <ikiwiki.info>2020-03-03 03:08:02 -0500
commit70e0dbc4c60b1bb66aa3aee2563897620be6302a (patch)
tree325275534f8b68221fb4937fd35983ba8940170f /backend
parentc9d8d12bc837261238a643e5c6fdea061057c6a2 (diff)
downloadstandingwithresilience-70e0dbc4c60b1bb66aa3aee2563897620be6302a.tar.gz
standingwithresilience-70e0dbc4c60b1bb66aa3aee2563897620be6302a.zip
i think ikiwiki will build locally now
Diffstat (limited to 'backend')
-rwxr-xr-xbackend/dep/build_ikiwiki.sh5
-rw-r--r--backend/resilient/__init__.py4
2 files changed, 6 insertions, 3 deletions
diff --git a/backend/dep/build_ikiwiki.sh b/backend/dep/build_ikiwiki.sh
index 56f6325..52543f3 100755
--- a/backend/dep/build_ikiwiki.sh
+++ b/backend/dep/build_ikiwiki.sh
@@ -6,8 +6,9 @@ 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" &&
+PERL5LIB="$SCRIPTDIR/prefix/lib/perl5" perl Makefile.PL PREFIX="$SCRIPTDIR/prefix" INSTALL_BASE= &&
make &&
+make install PREFIX="$SCRIPTDIR/prefix" &&
echo To run ikiwiki: &&
-echo "PERL5LIB='$SCRIPTDIR/prefix' '$(pwd)/'ikiwiki.out"
+echo "$SCRIPTDIR/prefix/bin/ikiwiki"
diff --git a/backend/resilient/__init__.py b/backend/resilient/__init__.py
index 27e15db..73ad2db 100644
--- a/backend/resilient/__init__.py
+++ b/backend/resilient/__init__.py
@@ -101,12 +101,14 @@ class ikiwiki:
binary = "ikiwiki"
found = (os.system("%s --version" % binary) == 0)
if not found:
- binary = "%s/ikiwiki/ikiwiki.out" % dep_path
+ binary = "%s/prefix/bin/ikiwiki" % dep_path
+ #binary = "%s/ikiwiki/ikiwiki.out" % dep_path
os.environ['PERL5LIB'] = os.path.join(dep_path, 'prefix', 'lib', 'perl5')
found = (os.system("%s --version" % binary) == 0)
if not found:
print("ikiwiki not found: attempting to build")
os.system("%s/build_ikiwiki.sh" % dep_path)
+ binary = "%s/prefix/bin/ikiwiki" % dep_path
found = (os.system("%s --version" % binary) == 0)
if not found:
print("WARNING: ikiwiki not found. did build fail on this platform?")