public inbox for gentoo-docs-it@lists.gentoo.org
 help / color / mirror / Atom feed
From: Daniele Segato <daniele.segato@gmail.com>
To: gentoo-docs-it@lists.gentoo.org
Subject: Re: [gentoo-docs-it] Breviario del traduttore?
Date: Sun, 05 Feb 2012 23:51:13 +0100	[thread overview]
Message-ID: <4F2F07E1.4050204@gmail.com> (raw)
In-Reply-To: <CAP6dPAfqpzoU29cmOrWZsGBVn9TLOWqmqxaD713LKbVLR1WyeA@mail.gmail.com>

On 02/05/2012 11:30 PM, HUjuice wrote:
>> (ps: sapete che si possono definire degli hook su git che rifiutano ogni
>> push che contenga xml non validi? non so se gitorious te lo lasci fare.. ma
>> in locale si può certamente ottenere)
> Questa è un'ottima idea.
> Peccato che gitorious non ci conceda altrettanto.
> Però potrebbe essere carino e semplice scriverne uno pre-commit e condividerlo.
> In quattroequattrotto ho scritto questo che mi sembra funzionare:
> .git/hooks/pre-commit
> ------------------------------
> #!/bin/sh
> for i in $(git diff --name-only); do
>          if ! xmllint --valid --noout $i; then
>                  echo "Errori XML nel file $i"
>                  exit 0
>          fi
> done
> -------
> Secondo te si può migliorare?


exit 0 mi pare dica "tutto ok"

ti direi che farei l'exit alla fine del ciclo se ci sono stati errori in 
modo da controllare sempre tutti i file

mi documento sugli hook che non ho mai usato intensivamente e ti faccio 
sapere se c'è altro che si può fare




  reply	other threads:[~2012-02-05 22:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-04 10:27 [gentoo-docs-it] Breviario del traduttore? Daniele Segato
2012-02-04 14:55 ` HUjuice
2012-02-05 10:41   ` Daniele Segato
2012-02-05 22:30     ` HUjuice
2012-02-05 22:51       ` Daniele Segato [this message]
2012-02-05 23:32         ` HUjuice
2012-02-06  9:44           ` Daniele Segato
2012-02-06  9:53             ` Daniele Segato
2012-02-06 10:19             ` HUjuice

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

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

  git send-email \
    --in-reply-to=4F2F07E1.4050204@gmail.com \
    --to=daniele.segato@gmail.com \
    --cc=gentoo-docs-it@lists.gentoo.org \
    /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