summaryrefslogtreecommitdiff
path: root/print/yatex/files
diff options
context:
space:
mode:
authorSatoshi Taoka <taoka@FreeBSD.org>1999-03-17 06:57:38 +0000
committerSatoshi Taoka <taoka@FreeBSD.org>1999-03-17 06:57:38 +0000
commit18aed621c2ed14421f986b3fadb4e14ff7b800e2 (patch)
treea9aebbdcf98e210f3179847595514ddb786a8086 /print/yatex/files
parent* Update 0.9.29 -> 0.9.34 (diff)
moved japanese/yatex to print/yatex-mule (for Mule 2.3)
moved japanese/yatex-xemacs to print/yatex-xemacs-mule (for XEmacs20-mule) added a new port: print/yatex-xemacs (for XEmacs19 XEmacs20)
Notes
Notes: svn path=/head/; revision=17260
Diffstat (limited to 'print/yatex/files')
-rw-r--r--print/yatex/files/DEINSTALL.tmpl27
-rw-r--r--print/yatex/files/INSTALL.tmpl95
-rw-r--r--print/yatex/files/MESSAGE.tmpl12
-rw-r--r--print/yatex/files/yatex-startup.el.tmpl39
4 files changed, 97 insertions, 76 deletions
diff --git a/print/yatex/files/DEINSTALL.tmpl b/print/yatex/files/DEINSTALL.tmpl
index 169e15519733..526f1ee7df18 100644
--- a/print/yatex/files/DEINSTALL.tmpl
+++ b/print/yatex/files/DEINSTALL.tmpl
@@ -2,33 +2,20 @@
pkgname=$1
-CP=${CP:-%CP%}
-ECHO=${ECHO:-%ECHO%}
-GREP=${GREP:-%GREP%}
-RM=${RM:-%RM%}
-SED=${SED:-%SED%}
+CP=${CP:-%%CP%%}
+ECHO=${ECHO:-%%ECHO%%}
+GREP=${GREP:-%%GREP%%}
+RM=${RM:-%%RM%%}
+SED=${SED:-%%SED%%}
-infodir=${INFODIR:-%INFODIR%}
-infofiles=${INFOFILES:-%INFOFILES%}
-sitestartdir=${SITESTARTDIR:-%SITESTARTDIR%}
-elispdir=${ELISPDIR:-%ELISPDIR%}
-
-OptionStart=";;; configuration options for ${pkgname}"
-OptionEnd=";;; End of configuration options for ${pkgname}"
+infodir=${INFODIR:-%%INFODIR%%}
+infofiles=${INFOFILES:-%%INFOFILES%%}
if [ "X$2" = X"DEINSTALL" ]; then
${ECHO} "Deleting entry for \"${pkgname}\" from ${infodir}/dir"
for file in `echo ${infofiles} | ${SED} "s,:, ,g"`; do
install-info --delete ${infodir}/${file} ${infodir}/dir
done
- if [ X"${sitestartdir}" != X ] && \
- [ "`grep \"^${OptionStart}\" ${sitestartdir}/site-start.el`" ]; then
- ${ECHO} "Deleting entry for \"${pkgname}\" from ${sitestartdir}/site-start.el"
- ${SED} -e "/^${OptionStart}/,/^${OptionEnd}/d" \
- ${sitestartdir}/site-start.el > ${sitestartdir}/site-start.el.bak
- ${CP} ${sitestartdir}/site-start.el.bak ${sitestartdir}/site-start.el
- ${RM} ${sitestartdir}/site-start.el.bak
- fi
else
exit 0
fi
diff --git a/print/yatex/files/INSTALL.tmpl b/print/yatex/files/INSTALL.tmpl
index ef43acea1305..23726eaa8d6e 100644
--- a/print/yatex/files/INSTALL.tmpl
+++ b/print/yatex/files/INSTALL.tmpl
@@ -2,66 +2,49 @@
pkgname=$1
-BASENAME=${BASENAME:-%BASENAME%}
-CP=${CP:-%CP%}
-ECHO=${ECHO:-%ECHO%}
-GREP=${GREP:-%GREP%}
-SED=${SED:-%SED%}
-TOUCH=${TOUCH:-%TOUCH%}
-DO_NADA=${DO_NADA:-%DO_NADA%}
+BASENAME=${BASENAME:-%%BASENAME%%}
+CP=${CP:-%%CP%%}
+ECHO=${ECHO:-%%ECHO%%}
+GREP=${GREP:-%%GREP%%}
+SED=${SED:-%%SED%%}
+TOUCH=${TOUCH:-%%TOUCH%%}
+CUT=${CUT:-%%CUT%%}
+DO_NADA=${DO_NADA:-%%DO_NADA%%}
+CUT=/usr/bin/cut
+EXPR=/bin/expr
-infodir=${INFODIR:-%INFODIR%}
-infofiles=${INFOFILES:-%INFOFILES%}
-infonodes=${INFONODES:-%INFONODES%}
-infonodeexps=${INFONODEEXPS:-%INFONODEEXPS%}
-elispdir=${ELISPDIR:-%ELISPDIR%}
-sitestartdir=${SITESTARTDIR:-%SITESTARTDIR%}
-dirsection=${DIRSECTION:-%DIRSECTION%}
-
-OptionStart=";;; configuration options for ${pkgname}"
-OptionEnd=";;; End of configuration options for ${pkgname}"
+infodir=${INFODIR:-%%INFODIR%%}
+infofiles=${INFOFILES:-%%INFOFILES%%}
+infonodes=${INFONODES:-%%INFONODES%%}
+infonodeexps=${INFONODEEXPS:-%%INFONODEEXPS%%}
+dirsection=${DIRSECTION:-%%DIRSECTION%%}
if [ "X$2" = X"POST-INSTALL" ]; then
- if [ ! -f ${sitestartdir}/site-start.el ]; then
- ${TOUCH} ${sitestartdir}/site-start.el
+ count=1
+ # For example, the result of `cut ttt -d : -f 2` is ttt. Why?
+ infofiles=${infofiles}:
+ while ${DO_NADA}; do
+ if [ X`${ECHO} ${infofiles} | ${CUT} -d : -f $count` = X ]; then
+ break
fi
- count=1
- # For example, the result of `cut ttt -d : -f 2` is ttt. Why?
- infofiles=${infofiles}:
- while ${DO_NADA}; do
- if [ X`${ECHO} ${infofiles} | cut -d : -f $count` = X ]; then
- break
- fi
- file=`${ECHO} ${infofiles} | cut -d : -f $count`
- nodename=`${ECHO} ${infonodes} | cut -d : -f $count`
- nodeexp=`${ECHO} ${infonodeexps} | cut -d : -f $count`
- if [ ! "`${GREP} \"START-INFO-DIR-ENTRY\" ${infodir}/${file}`" ]; then
- ${ECHO} "INFO-DIR-SECTION ${dirsection}" \
- >> ${infodir}/${file}
- ${ECHO} "START-INFO-DIR-ENTRY" >> ${infodir}/${file}
- ${ECHO} "* ${nodename}: (`${BASENAME} ${file}`). ${nodeexp}" \
- >> ${infodir}/${file}
- ${ECHO} "END-INFO-DIR-ENTRY" >> ${infodir}/${file}
- fi
- count=`expr $count + 1`
- done
- ${ECHO} "Adding entry for \"${pkgname}\" to ${infodir}/dir"
- for file in `${ECHO} ${infofiles} | ${SED} "s,:, ,g"`; do
- install-info ${infodir}/${file} ${infodir}/dir
- done
- if [ X"${sitestartdir}" != X ]; then
- if [ "`${GREP} \"^${OptionStart}\" ${sitestartdir}/site-start.el`" ]; then
- ${SED} -e "/^${OptionStart}/,/^${OptionEnd}/d" \
- ${sitestartdir}/site-start.el > ${sitestartdir}/site-start.el.bak
- ${CP} ${sitestartdir}/site-start.el.bak ${sitestartdir}/site-start.el
- fi
- ${ECHO} "Adding entry for \"${pkgname}\" to ${sitestartdir}/site-start.el"
- ${ECHO} "${OptionStart}" >> ${sitestartdir}/site-start.el
- /usr/bin/printf "%ADDSITESTART%" | \
- ${SED} "s/^ //" >> ${sitestartdir}/site-start.el
- ${ECHO} "${OptionEnd}" >> ${sitestartdir}/site-start.el
+ file=`${ECHO} ${infofiles} | ${CUT} -d : -f $count`
+ nodename=`${ECHO} ${infonodes} | ${CUT} -d : -f $count`
+ nodeexp=`${ECHO} ${infonodeexps} | ${CUT} -d : -f $count`
+ if [ ! "`${GREP} \"START-INFO-DIR-ENTRY\" ${infodir}/${file}`" ]; then
+ ${ECHO} "INFO-DIR-SECTION ${dirsection}" \
+ >> ${infodir}/${file}
+ ${ECHO} "START-INFO-DIR-ENTRY" >> ${infodir}/${file}
+ ${ECHO} "* ${nodename}: (`${BASENAME} ${file}`). ${nodeexp}" \
+ >> ${infodir}/${file}
+ ${ECHO} "END-INFO-DIR-ENTRY" >> ${infodir}/${file}
fi
- exit 0
+ count=`${EXPR} $count + 1`
+ done
+ ${ECHO} "Adding entry for \"${pkgname}\" to ${infodir}/dir"
+ for file in `${ECHO} ${infofiles} | ${SED} "s,:, ,g"`; do
+ install-info ${infodir}/${file} ${infodir}/dir
+ done
+ exit 0
else
- exit 0
+ exit 0
fi
diff --git a/print/yatex/files/MESSAGE.tmpl b/print/yatex/files/MESSAGE.tmpl
new file mode 100644
index 000000000000..38e568bcc3d9
--- /dev/null
+++ b/print/yatex/files/MESSAGE.tmpl
@@ -0,0 +1,12 @@
+######################################################################
+To use YaTeX, add the next line into your .emacs;
+
+ (require 'yatex-startup)
+
+where yatex-startup.el is in %%ELISPDIR%%.
+Please check the setup file because it has a lot of examples.
+To get more information, see the info file of YaTeX;
+
+Installation::
+Customizations => Lisp variables::
+######################################################################
diff --git a/print/yatex/files/yatex-startup.el.tmpl b/print/yatex/files/yatex-startup.el.tmpl
new file mode 100644
index 000000000000..317412f9d4fa
--- /dev/null
+++ b/print/yatex/files/yatex-startup.el.tmpl
@@ -0,0 +1,39 @@
+;; a startup elisp for YaTeX
+;; -- S. Taoka <taoka@infonets.hiroshima-u.ac.jp>
+
+;;;;;;;;;;; %%TARGETNAME%% (Ver.%%VERSION%%) ;;;;;;;;;;;
+
+(setq load-path (append (list
+ "%%ELISPDIR%%/yatex"
+ ) load-path))
+(setq auto-mode-alist
+ (cons (cons "\\.tex$" 'yatex-mode) auto-mode-alist))
+(autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t)
+;;
+;(setq tex-command "latex")
+;(setq dvi2-command "xdvi -geo +0+0 -s 3")
+;; If you use dvipsk as default, you should use the following three lines.
+;(setq dviprint-from-format "-p %b")
+;(setq dviprint-to-format "-l %b")
+;(setq dviprint-command-format "dvips %f %t %s | lpr")
+;; specifying a Kanji code for Mule
+;; (1=Shift JIS, 2=JIS, 3=EUC)
+;(setq YaTeX-kanji-code 3)
+;;
+;; For XEmacs, it is not supported that YaTeX originally color
+;; LaTeX commands (e.g. \section{foo}) by using hilit19
+;; so you had better uncomment the next line.
+;(put 'yatex-mode 'font-lock-defaults 'latex-mode)
+;;
+;;;;;;;; Yahtml (another html-mode) ;;;;;;
+;(setq auto-mode-alist
+; (cons (cons "\\.html$" 'yahtml-mode) auto-mode-alist))
+;(autoload 'yahtml-mode "yahtml" "Yet Another HTML mode" t)
+;; Write your favorite browser. But netscape is advantageous.
+;(setq yahtml-www-browser "netscape")
+;; Write correspondence alist from ABSOLUTE unix path name to URL path.
+;(setq yahtml-path-url-alist
+; '(("/home/yuuji/public_html" . "http://www.mynet/~yuuji")
+; ("/home/staff/yuuji/html" . "http://www.othernet/~yuuji")))
+
+(provide 'yatex-startup)