summaryrefslogtreecommitdiff
path: root/asciidoc/crux_install.diff
blob: 2e4cf01468b4b81cf46ecf9f24ed20511cf3673f (plain)
    1 --- install.sh	2008-04-30 20:08:05.000000000 +0200
    2 +++ install.sh.new	2008-04-30 20:18:12.000000000 +0200
    3 @@ -8,21 +8,12 @@
    4  # directory) then you will also need to change the CONF_DIR constant definition
    5  # values in both a2x and asciiidoc.py scripts.
    6  
    7 -CONFDIR=/etc/asciidoc
    8 -BINDIR=/usr/local/bin
    9 -MANDIR=/usr/local/man
   10 -VIM_CONFDIR=/etc/vim
   11 +CONFDIR=$PKG/usr/etc/asciidoc
   12 +BINDIR=$PKG/usr/bin
   13 +MANDIR=$PKG/usr/man
   14 +VIM_CONFDIR=$PKG/usr/share/vim
   15  
   16 -if [ `basename $0` = uninstall.sh ]; then
   17 -    rm $BINDIR/asciidoc
   18 -    rm $BINDIR/a2x
   19 -    rm $MANDIR/man1/asciidoc.1
   20 -    rm $MANDIR/man1/a2x.1
   21 -    rm -rf $CONFDIR
   22 -    rm -f $VIM_CONFDIR/syntax/asciidoc.vim
   23 -    rm -f $VIM_CONFDIR/ftdetect/asciidoc_filetype.vim
   24 -else
   25 -    install asciidoc.py $BINDIR/asciidoc
   26 +    install -D asciidoc.py $BINDIR/asciidoc
   27      install a2x $BINDIR/a2x
   28      install -d $MANDIR/man1
   29      install doc/*.1 $MANDIR/man1
   30 @@ -38,15 +29,12 @@
   31      install -m 644 stylesheets/*.css $CONFDIR/stylesheets
   32      install -m 644 javascripts/*.js $CONFDIR/javascripts
   33      install -m 644 images/icons/callouts/* $CONFDIR/images/icons/callouts
   34 -    install -m 644 images/icons/README images/icons/*.png $CONFDIR/images/icons
   35 -    if [ -d $VIM_CONFDIR ]; then
   36 +    install -m 644 images/icons/*.png $CONFDIR/images/icons
   37          install -d $VIM_CONFDIR/syntax
   38          install -m 644 vim/syntax/asciidoc.vim \
   39                         $VIM_CONFDIR/syntax/asciidoc.vim
   40          install -d $VIM_CONFDIR/ftdetect
   41          install -m 644 vim/ftdetect/asciidoc_filetype.vim \
   42                         $VIM_CONFDIR/ftdetect/asciidoc_filetype.vim
   43 -    fi
   44 -fi
   45  
   46  # vim: set et ts=4 sw=4 sts=4:

Generated by cgit