unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Mike <mikee@mikee.ath.cx>
Subject: Re: OT: emacs-style variables (etc) in the headers?
Date: Mon, 27 Dec 2004 18:17:50 GMT	[thread overview]
Message-ID: <ilYzd.3988$BZ3.715@fe07.lga> (raw)
In-Reply-To: mailman.9151.1104169993.27204.help-gnu-emacs@gnu.org

In article <mailman.9151.1104169993.27204.help-gnu-emacs@gnu.org>, Peter Dyballa wrote:
> 
> Am 27.12.2004 um 17:59 schrieb Mike:
> 
>> Is there an algorithm somewhere to detect the script
>> is really a script and not a binary file, what the comment
>> character is, and some standard way to include these variables
>> and such in files?
> 
> Yes: RTFMs.
> 
> The UNIX file command can test what kind of file it is. It might be 
> useful to extend file's magic file by some extra entries. The standard 
> way to include these variables should be GNU Emacs.
> 
> (What about a side project that documents what you've discovered?)
> 

Below are the comments at the start of the program I'm working on.
I currently have 20+ boxes with 20+ different configurations. The
program I've started is intended to run on each server and maintain
a consistent configuration.

Mike

#!/usr/bin/perl

# $Id$
# $Log$

# maintain a consistent configuration on the local server

# see if cvs is installed
# check that ~/.cvspass and ~/.cvsrc exist
# load the config file
# see if the $cfgdir exists (else mkdir $cvsdir, then cvs co -d $cfgdir unixcfg)
# execute chdir $cfgdir ; cvs update
# log the output of the cvs update
# examine all files in $cfgdir
# if file in $cfgdir/$file is newer than /$file
#   extract any code snippets from the header of $cfgdir/$file
#   execute any pre-snippets
#   install the file
#   execute any post-snippets
#   update the log with the output of the snippets
#   loop

# if asked, use the pod formatting on the files
# determine the difference between documentation, snippets, and the rest of the file
# (should this be a separate script?)

  parent reply	other threads:[~2004-12-27 18:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-27 16:59 OT: emacs-style variables (etc) in the headers? Mike
2004-12-27 17:40 ` Peter Dyballa
     [not found] ` <mailman.9151.1104169993.27204.help-gnu-emacs@gnu.org>
2004-12-27 18:17   ` Mike [this message]
2005-01-03 19:57 ` Stefan Monnier
2005-01-03 20:44   ` Mike
2005-01-03 22:21     ` Stefan Monnier
2005-01-03 23:00       ` Mike
2005-01-03 23:03         ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='ilYzd.3988$BZ3.715@fe07.lga' \
    --to=mikee@mikee.ath.cx \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).