Skip to content

Commit 8a7c215

Browse files
Benoit Persongitster
authored andcommitted
git-remote-mediawiki: add a git bin-wrapper for developement
The introduction of the Git::Mediawiki package makes it impossible to test, without installation, git-remote-mediawiki and git-mw. Using a git bin-wrapper enables us to define proper $GITPERLLIB to force the use of the developement version of the Git::Mediawiki package, bypassing its installed version if any. An alternate solution was to 'install' all the files required at each build but it pollutes the toplevel with untracked files. Signed-off-by: Benoit Person <[email protected]> Signed-off-by: Matthieu Moy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8bade1e commit 8a7c215

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

contrib/mw-to-git/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
# Copyright (C) 2013
33
# Matthieu Moy <[email protected]>
44
#
5+
# To build and test:
6+
#
7+
# make
8+
# bin-wrapper/git mw preview Some_page.mw
9+
# bin-wrapper/git clone mediawiki::http://example.com/wiki/
10+
#
511
# To install, run Git's toplevel 'make install' then run:
612
#
713
# make install

contrib/mw-to-git/bin-wrapper/git

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
3+
# git executable wrapper script for Git-Mediawiki to run tests without
4+
# installing all the scripts and perl packages.
5+
6+
GIT_ROOT_DIR=../../..
7+
GIT_EXEC_PATH=$(cd "$(dirname "$0")" && cd ${GIT_ROOT_DIR} && pwd)
8+
9+
GITPERLLIB="$GIT_EXEC_PATH"'/contrib/mw-to-git'"${GITPERLLIB:+:$GITPERLLIB}"
10+
PATH="$GIT_EXEC_PATH"'/contrib/mw-to-git:'"$PATH"
11+
12+
export GITPERLLIB PATH
13+
14+
exec "${GIT_EXEC_PATH}/bin-wrappers/git" "$@"

0 commit comments

Comments
 (0)