r96209 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96208‎ | r96209 | r96210 >
Date:19:27, 3 September 2011
Author:platonides
Status:deferred
Tags:
Comment:
Add a script for installing a local ploticus instance.
Needs an update on each new ploticus release (just
updating the url).
The script is POSIX compliant. The -m option of mkdir
was originally present in System V, but BSD supports
it http://www.freebsd.org/cgi/man.cgi?query=mkdir&sektion=1
Modified paths:
  • /trunk/extensions/timeline (modified) (history)
  • /trunk/extensions/timeline/install-ploticus.sh (added) (history)

Diff [purge]

Index: trunk/extensions/timeline/install-ploticus.sh
@@ -0,0 +1,36 @@
 2+#!/bin/sh
 3+## This script dowloads, builds and installs a local binary of ploticus
 4+## into this extension folder, with settings suitable for most UNIX servers.
 5+##
 6+## If ploticus is provided as a package by your distribution and you can get
 7+## it installed, you should instead use that procedure to install ploticus.
 8+##
 9+
 10+mkdir -m 700 ploticus
 11+set -e
 12+
 13+cd ploticus
 14+wget http://downloads.sourceforge.net/ploticus/pl241src.tar.gz?download
 15+tar -xzf pl*src.tar.*
 16+cd pl*src
 17+cd src
 18+
 19+# Using setting 1 (default), appropiate for UNIX servers: Only pl executable with no X11
 20+
 21+# Choose GD with FreeType2
 22+
 23+# Uncomment section 4
 24+sed "/Option 4: use your own GD resource with FreeType2 fonts enabled/,/Option 5/ s/^#//g" Makefile > Makefile2
 25+# And comment section 1
 26+sed "/Option 1: use bundled GD16/,/Option 2: use bundled GD13 (pseudoGIF only)/ s/^/#/g" Makefile2 > Makefile
 27+
 28+make
 29+
 30+# Copy to the extension folder
 31+make INSTALLBIN=../../.. install
 32+cd ../../..
 33+rm -r ploticus
 34+
 35+# Make MediaWiki know where is this binary located
 36+echo '$wgTimelineSettings->ploticusCommand = dirname( __FILE__ ) . "/pl";' >> Timeline.php
 37+
Property changes on: trunk/extensions/timeline/install-ploticus.sh
___________________________________________________________________
Added: svn:eol-style
138 + native
Property changes on: trunk/extensions/timeline
___________________________________________________________________
Added: svn:ignore
239 + pl

Status & tagging log