git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Management of opendocument (openoffice.org) files in git

From
Paolo Bonzini <bonzini@gnu.org>
Date
Sep 16, 2008, 06:24 UTC
Message-ID
<48CF5127.5040507@gnu.org>
>                 profile_unzip=PROFILE_UNZIP_${profile}
>                 profile_zip=PROFILE_ZIP_${profile}
>                 UNZIP_OPTS=${!profile_unzip}
>                 ZIP_OPTS=${!profile_zip}
Can be written (in pure bourne shell) as
  eval UNZIP_OPTS=\$PROFILE_UNZIP_${profile}
  eval ZIP_OPTS=\$PROFILE_ZIP_${profile}
>         --unzip_opts)
>             UNZIP_OPTS=${UNZIP_OPTS} $2
Missing quotes:
  UNZIP_OPTS="${UNZIP_OPTS} $2"
It could also be a good idea to do
  UNZIP_OPTS="${UNZIP_OPTS} `echo $2 | sed 'y/,/ /' `"
(compare with the -Wa/-Wl/-Wp options of gcc) so you can do
  [filter "opendocument"]
        clean = "rezip --unzip-opts -b,-qq,-X --zip-opts -q,-r,-D,-0"
        smudge = "rezip --unzip-opts -b,-qq,-X --zip-opts -q,-r,-D,-6"
And maybe -b,-qq,-X and -q,-r respectively could be added by default?
Anyway, nice script, thanks!
Paolo
Next: Sergio Callegari
Message 1 of 5 in “Re: Management of opendocument (openoffice.org) files in git”
  1. Paolo BonziniSep 16, 2008
  2. Sergio CallegariSep 16, 2008
  3. Paolo BonziniSep 16, 2008
  4. Michael J GruberOct 2, 2008
  5. Peter KreftingOct 10, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.