Overview
Comment: | Added editwiki script to utils |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | v1.65-wiki-manual |
Files: | files | file ages | folders |
SHA1: |
be9acfd8edc953fd7c1a27df479f5dcb |
User & Date: | mrwellan on 2018-01-30 12:13:41 |
Other Links: | branch diff | manifest | tags |
Context
2018-01-30
| ||
14:01 | EDITOR variable properly respected in editwiki. Added check for diff before committing so no extraneous changes on timeline check-in: 237a19178b user: mrwellan tags: v1.65-wiki-manual | |
12:13 | Added editwiki script to utils check-in: be9acfd8ed user: mrwellan tags: v1.65-wiki-manual | |
11:26 | Refactor manual to use wiki pages check-in: 6b11655edd user: mrwellan tags: v1.65-wiki-manual | |
Changes
Added utils/editwiki version [c87edf48f4].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | #!/bin/bash wikiname=$1 FOSSILBIN=fossil if [ x"$wikiname" == "x" ];then echo "Usage: viwiki wikipagename" exit fi $FOSSILBIN sync wikitmpfile=`mktemp /tmp/${USER}_wikiedit.XXXXXXX` if ! $FOSSILBIN wiki export "$wikiname" 2> /dev/null 1> $wikitmpfile ;then cat /dev/null > $wikitmpfile wikipagestate='new' else wikipagestate='existing' fi if [ x"$EDITOR" == "x" ];then EDITOR="gvim -f" fi echo $EDITOR | grep -q -e gvim isGvim=$? echo $EDITOR | grep -q -e 'gvim.*-f' hasF=$? if [[ $isGvim == 0 && $hasF != 0 ]]; then EDITOR="$EDITOR -f" fi $EDITOR $wikitmpfile if [ $wikipagestate == 'new' ];then $FOSSILBIN wiki create "$wikiname" $wikitmpfile else $FOSSILBIN wiki commit "$wikiname" $wikitmpfile fi $FOSSILBIN sync rm -f $wikitmpfile |