Files
@ r1:5e332663b41f
Branch filter:
Location: public/ws-vacation/lib/write_to.sh - annotation
r1:5e332663b41f
2.3 KiB
text/x-sh
Makefile: do not generate documentation automatically.
The documentation needs Docutils and is therefore distributed in compiled
form. The normal make process should not require docutils tobe installed.
The documentation needs Docutils and is therefore distributed in compiled
form. The normal make process should not require docutils tobe installed.
r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 r0:ec1fe8c48272 | #!/bin/sh
# write_to.sh - excute `cat - >' for file.
# usage: write_to.sh file
# (abbrevx-single-replace "@package@" "::ide::")
# Copyright (C) 2012, Wolfgang Scherer, <Wolfgang.Scherer at gmx.de>
#
# This file is part of @Package@.
#
: # script help
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>,
# or write to Wolfgang Scherer, Sudetenstr. 48, D-97340
# Marktbreit or <Wolfgang.Scherer at gmx.de>
# --------------------------------------------------
# |||:sec:||| FUNCTIONS
# --------------------------------------------------
usage ()
{
script_help="script-help"
( "${script_help}" ${1+"$@"} "${0}" ) 2>/dev/null \
|| ${SED__PROG-sed} -n '3,/^[^#]/{;/^[^#]/d;p;}' "${0}";
}
test x"${1+set}" = xset && \
case "${1}" in
-\?|-h|--help) usage; exit 0;;
--docu) usage --full; exit 0;;
esac
# --------------------------------------------------
# |||:sec:||| MAIN
# --------------------------------------------------
# |:here:|
exec cat - >"${1}"
exit # |||:here:|||
#
# :ide-menu: Emacs IDE Main Menu - Buffer @BUFFER@
# . M-x `eIDE-menu' (eIDE-menu "z")
# :ide: SNIP: insert OPTION LOOP
# . (snip-insert-mode "sh_b.opt-loop" nil t)
# :ide: SHELL: Run with --docu
# . (progn (save-buffer) (shell-command (concat "sh " (file-name-nondirectory (buffer-file-name)) " --docu")))
# :ide: SHELL: Run with --help
# . (progn (save-buffer) (shell-command (concat "sh " (file-name-nondirectory (buffer-file-name)) " --help")))
# :ide: SHELL: Run w/o args
# . (progn (save-buffer) (shell-command (concat "sh " (file-name-nondirectory (buffer-file-name)) " ")))
#
# Local Variables:
# mode: sh
# comment-start: "#"
# comment-start-skip: "#+"
# comment-column: 0
# End:
# mmm-classes: (here-doc ide-entries)
|