summaryrefslogtreecommitdiff
path: root/www/w3/files
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1997-06-10 09:58:54 +0000
committerSatoshi Asami <asami@FreeBSD.org>1997-06-10 09:58:54 +0000
commit7ca69fdf614e75d1b35fb7f0306df9c82c0854c8 (patch)
tree59d38e7604189c1c098f475cb47065d5e6e942e9 /www/w3/files
parentAdd starlanes. (diff)
Update dir file with install-info. Also, change organization so that
files can be shared between this port and japanese/w3. Note this is a "blind" commit; it is too much trouble to test an update with this many added and deleted files. I'll test it later. PR: 3788 Submitted by: <kiri@kiri.toba-cmt.ac.jp>
Notes
Notes: svn path=/head/; revision=6842
Diffstat (limited to 'www/w3/files')
-rw-r--r--www/w3/files/DEINSTALL.tmpl31
-rw-r--r--www/w3/files/INSTALL.tmpl112
-rw-r--r--www/w3/files/dot.emacs.tmpl8
-rw-r--r--www/w3/files/patch-aa25
-rw-r--r--www/w3/files/user-install.tmpl11
5 files changed, 179 insertions, 8 deletions
diff --git a/www/w3/files/DEINSTALL.tmpl b/www/w3/files/DEINSTALL.tmpl
new file mode 100644
index 000000000000..48f1b91fd511
--- /dev/null
+++ b/www/w3/files/DEINSTALL.tmpl
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+infodir=${INFODIR:-%INFODIR%}
+infofile=${INFOFILE:-%INFOFILE%}
+elispdir=${ELISPDIR:-%ELISPDIR%}
+addir=${ADDIR:-%ADDIR%}
+
+if [ "X$2" = X"DEINSTALL" ]; then
+ echo "Deleting \"w3\" entry from ${infodir}/dir"
+ install-info --delete ${infodir}/${infofile} ${infodir}/dir
+ OptionStart=";;; Emacs-w3 configuration options"
+ OptionEnd=";;; End of Emacs-w3 configuration options"
+ if [ "`grep \"^${OptionStart}\" ${elispdir}/site-start.el`" ]; then
+ echo "Deleting \"w3\" entry from ${elispdir}/site-start.el"
+ sed -e "/^${OptionStart}/,/^${OptionEnd}/d"\
+ ${elispdir}/site-start.el \
+ > ${elispdir}/site-start.el.bak
+ mv ${elispdir}/site-start.el.bak ${elispdir}/site-start.el
+ fi
+ OptionStart="!!! Emacs-w3 configuration options"
+ OptionEnd="!!! End of Emacs-w3 configuration options"
+ if [ "`grep \"^${OptionStart}\" ${addir}/Emacs`" ]; then
+ echo "Deleting \"w3\" entry from ${addir}/Emacs"
+ sed -e 's/^![ ]*\(Emacs\*w3-.*\)$/&/' \
+ -e "/^${OptionStart}/,/^${OptionEnd}/d" \
+ ${addir}/Emacs > ${addir}/Emacs.bak
+ mv ${addir}/Emacs.bak ${addir}/Emacs
+ fi
+else
+ exit 0
+fi
diff --git a/www/w3/files/INSTALL.tmpl b/www/w3/files/INSTALL.tmpl
new file mode 100644
index 000000000000..29a0802fec7c
--- /dev/null
+++ b/www/w3/files/INSTALL.tmpl
@@ -0,0 +1,112 @@
+#!/bin/sh
+
+TOUCH=${TOUCH:-%TOUCH%}
+MKDIR=${MKDIR:-"%MKDIR%"}
+
+infodir=${INFODIR:-%INFODIR%}
+infofile=${INFOFILE:-%INFOFILE%}
+elispdir=${ELISPDIR:-%ELISPDIR%}
+addir=${ADDIR:-%ADDIR%}
+
+dirsection=${DIRSECTION:-%DIRSECTION%}
+
+OptionStart="Emacs-w3 configuration options"
+OptionEnd="End of Emacs-w3 configuration options"
+
+if [ "X$2" = X"POST-INSTALL" ]; then
+ if [ ! -f ${elispdir}/site-start.el ]; then
+ ${TOUCH} ${elispdir}/site-start.el
+ fi
+ ${MKDIR} ${addir}
+ if [ ! -f ${addir}/Emacs ]; then
+ ${TOUCH} ${addir}/Emacs
+ fi
+ if [ ! "`grep \"START-INFO-DIR-ENTRY\" ${infodir}/${infofile}`" ]; then
+ echo "INFO-DIR-SECTION ${dirsection}" \
+ >> ${infodir}/${infofile}
+ echo "START-INFO-DIR-ENTRY" >> ${infodir}/${infofile}
+ echo "* w3: (`basename ${infofile} .info`). WWW browser." \
+ >> ${infodir}/${infofile}
+ echo "END-INFO-DIR-ENTRY" >> ${infodir}/${infofile}
+ fi
+ echo "Adding \"w3\" entry to ${infodir}/dir"
+ install-info ${infodir}/${infofile} ${infodir}/dir
+ sed -e "/^;;; ${OptionStart}/,/^;;; ${OptionEnd}/d" \
+ ${elispdir}/site-start.el > ${elispdir}/site-start.el.bak
+ mv ${elispdir}/site-start.el.bak ${elispdir}/site-start.el
+ echo "Adding \"w3\" entry to ${elispdir}/site-start.el"
+ echo ";;; ${OptionStart}" \
+ >> ${elispdir}/site-start.el
+ echo "(setq load-path " >> ${elispdir}/site-start.el
+ echo " (cons (expand-file-name " >> ${elispdir}/site-start.el
+ echo " \"${elispdir}/w3\") load-path))" \
+ >> ${elispdir}/site-start.el
+ echo "(autoload 'w3-preview-this-buffer \"w3\" \"WWW Previewer\" t)" \
+ >> ${elispdir}/site-start.el
+ echo "(autoload 'w3-follow-url-at-point" \
+ >> ${elispdir}/site-start.el
+ echo " \"w3\" \"Find document at pt\" t)" \
+ >> ${elispdir}/site-start.el
+ echo "(autoload 'w3 \"w3\" \"WWW Browser\" t)" \
+ >> ${elispdir}/site-start.el
+ echo "(autoload 'w3-open-local" >> ${elispdir}/site-start.el
+ echo " \"w3\" \"Open local file for WWW browsing\" t)" \
+ >> ${elispdir}/site-start.el
+ echo "(autoload 'w3-fetch" >> ${elispdir}/site-start.el
+ echo " \"w3\" \"Open remote file for WWW browsing\" t)" \
+ >> ${elispdir}/site-start.el
+ echo "(autoload 'w3-use-hotlist" >> ${elispdir}/site-start.el
+ echo " \"w3\" \"Use shortcuts to view WWW docs\" t)" \
+ >> ${elispdir}/site-start.el
+ echo "(autoload 'w3-show-hotlist" >> ${elispdir}/site-start.el
+ echo " \"w3\" \"Use shortcuts to view WWW docs\" t)" \
+ >> ${elispdir}/site-start.el
+ echo "(autoload 'w3-follow-link" >> ${elispdir}/site-start.el
+ echo " \"w3\" \"Follow a hypertext link.\" t)" \
+ >> ${elispdir}/site-start.el
+ echo "(autoload 'w3-batch-fetch" >> ${elispdir}/site-start.el
+ echo " \"w3\" \"Batch retrieval of URLs\" t)" \
+ >> ${elispdir}/site-start.el
+ echo "(autoload 'url-get-url-at-point" >> ${elispdir}/site-start.el
+ echo " \"url\" \"Find the url under the cursor\" nil)" \
+ >> ${elispdir}/site-start.el
+ echo "(autoload 'url-file-attributes" \
+ >> ${elispdir}/site-start.el
+ echo " \"url\" \"File attributes of a URL\" nil)" \
+ >> ${elispdir}/site-start.el
+ echo "(autoload 'url-popup-info" >> ${elispdir}/site-start.el
+ echo " \"url\" \"Get info on a URL\" t)" \
+ >> ${elispdir}/site-start.el
+ echo "(autoload 'url-retrieve" >> ${elispdir}/site-start.el
+ echo " \"url\" \"Retrieve a URL\" nil)" >> ${elispdir}/site-start.el
+ echo "(autoload 'url-buffer-visiting" \
+ >> ${elispdir}/site-start.el
+ echo " \"url\" \"Find buffer visiting a URL.\" nil)" \
+ >> ${elispdir}/site-start.el
+ echo "(autoload 'gopher-dispatch-object" \
+ >> ${elispdir}/site-start.el
+ echo " \"gopher\" \"Fetch gopher dir\" t)" \
+ >> ${elispdir}/site-start.el
+ echo ";;; ${OptionEnd}" \
+ >> ${elispdir}/site-start.el
+ if [ ! -f ${addir}/Emacs ]; then
+ touch ${addir}/Emacs
+ fi
+ sed -e 's/^![ ]*\(Emacs\*w3-.*\)$/&/' \
+ -e "/^!!! ${OptionStart}/,/^!!! ${OptionEnd}/d" \
+ ${addir}/Emacs > ${addir}/Emacs.bak
+ mv ${addir}/Emacs.bak ${addir}/Emacs
+ echo "Adding \"w3\" entry to ${addir}/Emacs"
+ sed -e 's/^[ ]*Emacs\*w3-.*$/! &/' ${addir}/Emacs \
+ > ${addir}/Emacs.bak
+ echo "!!! ${OptionStart}" >> ${addir}/Emacs.bak
+ echo "Emacs*w3-node-style.attributeForeground: purple" \
+ >> ${addir}/Emacs.bak
+ echo "Emacs*w3-visited-node-style.attributeForeground: blue" \
+ >> ${addir}/Emacs.bak
+ echo "!!! End of ${OptionStart}" >> ${addir}/Emacs.bak
+ mv ${addir}/Emacs.bak ${addir}/Emacs
+ exit 0
+else
+ exit 0
+fi
diff --git a/www/w3/files/dot.emacs.tmpl b/www/w3/files/dot.emacs.tmpl
new file mode 100644
index 000000000000..cba240257400
--- /dev/null
+++ b/www/w3/files/dot.emacs.tmpl
@@ -0,0 +1,8 @@
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Emacs-w3 ;;;;
+;; Emacs-w3(Ver.%VERSION%) ;;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+(setq url-keep-history t)
+(setq url-be-asynchronous t)
+(setq w3-default-homepage
+ "file://localhost/usr/share/doc/handbook/handbook.html")
+;; Emacs-w3 end
diff --git a/www/w3/files/patch-aa b/www/w3/files/patch-aa
index 0429fd811d79..a1b9742daad1 100644
--- a/www/w3/files/patch-aa
+++ b/www/w3/files/patch-aa
@@ -1,22 +1,31 @@
---- Makefile.org Sun Oct 29 01:21:56 1995
-+++ Makefile Sun Dec 1 14:01:52 1996
-@@ -8,12 +8,13 @@
+--- Makefile.orig Sun Oct 29 01:21:56 1995
++++ Makefile Sat May 31 19:15:25 1997
+@@ -1,19 +1,19 @@
+ # what emacs is called on your system
+-EMACS = emacs
++EMACS = ${EMACSCMD}
+
+ # How to make a directory
+ # need a -p if you want to make the parents!
+-MKDIR = mkdir
++MKDIR ?= mkdir
+
# Various other stuff used
RM = rm -f
- CP = cp
-+INSTALL_DATA = /usr/bin/install -c -o bin -g bin -m 444
+-CP = cp
++CP ?= cp
# where the Info file should go
-INFODIR = ../info
-+INFODIR = ${PREFIX}/info
++INFODIR ?= ../info
# where the w3 lisp files should go
-LISPDIR = $$HOME/lisp
-+LISPDIR = ${PREFIX}/share/emacs/site-lisp/w3
++LISPDIR = ${ELISPDIR}/w3
# Change this to be where your .emacs file is stored
DOTEMACS = $$HOME/.emacs
-@@ -57,16 +58,16 @@
+@@ -57,16 +57,16 @@
w3: docomp.el $(OBJECTS)
@echo Build of w3 complete...
diff --git a/www/w3/files/user-install.tmpl b/www/w3/files/user-install.tmpl
new file mode 100644
index 000000000000..118f0b23da11
--- /dev/null
+++ b/www/w3/files/user-install.tmpl
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+SAMPLEDIR=%SAMPLEDIR%
+
+if [ ! -f ${HOME}/.mosaic-hotlist-default ]; then
+ cp ${SAMPLEDIR}/dot.mosaic-hotlist-default ${HOME}/.mosaic-hotlist-default
+fi
+
+mv ${HOME}/.emacs ${HOME}/.emacs.org.$$
+sed -e '/^;;* Emacs-w3 ;*$/,/^;; *Emacs-w3 end$/d' < ${HOME}/.emacs.org.$$ > ${HOME}/.emacs
+cat ${SAMPLEDIR}/dot.emacs >> ${HOME}/.emacs