47 lines
1.6 KiB
Diff
47 lines
1.6 KiB
Diff
![]() |
--- install.sh 2008-04-30 20:08:05.000000000 +0200
|
||
|
+++ install.sh.new 2008-04-30 20:18:12.000000000 +0200
|
||
|
@@ -8,21 +8,12 @@
|
||
|
# directory) then you will also need to change the CONF_DIR constant definition
|
||
|
# values in both a2x and asciiidoc.py scripts.
|
||
|
|
||
|
-CONFDIR=/etc/asciidoc
|
||
|
-BINDIR=/usr/local/bin
|
||
|
-MANDIR=/usr/local/man
|
||
|
-VIM_CONFDIR=/etc/vim
|
||
|
+CONFDIR=$PKG/usr/etc/asciidoc
|
||
|
+BINDIR=$PKG/usr/bin
|
||
|
+MANDIR=$PKG/usr/man
|
||
|
+VIM_CONFDIR=$PKG/usr/share/vim
|
||
|
|
||
|
-if [ `basename $0` = uninstall.sh ]; then
|
||
|
- rm $BINDIR/asciidoc
|
||
|
- rm $BINDIR/a2x
|
||
|
- rm $MANDIR/man1/asciidoc.1
|
||
|
- rm $MANDIR/man1/a2x.1
|
||
|
- rm -rf $CONFDIR
|
||
|
- rm -f $VIM_CONFDIR/syntax/asciidoc.vim
|
||
|
- rm -f $VIM_CONFDIR/ftdetect/asciidoc_filetype.vim
|
||
|
-else
|
||
|
- install asciidoc.py $BINDIR/asciidoc
|
||
|
+ install -D asciidoc.py $BINDIR/asciidoc
|
||
|
install a2x $BINDIR/a2x
|
||
|
install -d $MANDIR/man1
|
||
|
install doc/*.1 $MANDIR/man1
|
||
|
@@ -38,15 +29,12 @@
|
||
|
install -m 644 stylesheets/*.css $CONFDIR/stylesheets
|
||
|
install -m 644 javascripts/*.js $CONFDIR/javascripts
|
||
|
install -m 644 images/icons/callouts/* $CONFDIR/images/icons/callouts
|
||
|
- install -m 644 images/icons/README images/icons/*.png $CONFDIR/images/icons
|
||
|
- if [ -d $VIM_CONFDIR ]; then
|
||
|
+ install -m 644 images/icons/*.png $CONFDIR/images/icons
|
||
|
install -d $VIM_CONFDIR/syntax
|
||
|
install -m 644 vim/syntax/asciidoc.vim \
|
||
|
$VIM_CONFDIR/syntax/asciidoc.vim
|
||
|
install -d $VIM_CONFDIR/ftdetect
|
||
|
install -m 644 vim/ftdetect/asciidoc_filetype.vim \
|
||
|
$VIM_CONFDIR/ftdetect/asciidoc_filetype.vim
|
||
|
- fi
|
||
|
-fi
|
||
|
|
||
|
# vim: set et ts=4 sw=4 sts=4:
|