3 # a shell script, which combines the ewiki.php library and some
4 # default plugins into a huger include library
8 HUGE_FILE
="huge-ewiki.php"
13 if [ -e "ewiki.php" ] ; then
21 if [ "$1" == "-h" -o "$1" == "--help" ] ; then
23 echo "combines many of the plugins and the core ewiki.php file into a bigger lib."
33 if [ "$1" -ge "3" ] ; then
34 PLUGINS
="markup_phpwiki.php markup_bbcode.php spellcheck.php $PLUGINS"
36 if [ "$1" -ge "2" ] ; then
37 PLUGINS
="more_interwiki.php page_imagegallery.php $PLUGINS"
39 if [ "$1" -ge "1" ] ; then
40 PLUGINS
="diff.php page_randompage.php markup_footnotes.php page_wordindex.php $PLUGINS"
42 PLUGINS
="strip_wonderful_slashes.php calendar.php email_protect.php like_pages.php page_pageindex.php page_powersearch.php $PLUGINS"
46 echo -n "writing: $CORE_FILE"
47 cat $DWP/$CORE_FILE > $DWP/$HUGE_FILE
51 for SUB
in plugins fragments
; do
52 if [ -e "$DWP/$SUB/$ADD" ] ; then
56 cat $ADD >> $DWP/$HUGE_FILE
58 echo " > $DWP/$HUGE_FILE"