bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gettext] [PATCH] Generate autopoint archive when bootstrapping


From: Miguel Ángel Arruga Vivas
Subject: Re: [bug-gettext] [PATCH] Generate autopoint archive when bootstrapping
Date: Thu, 07 Mar 2013 14:19:08 +0100

Daiki Ueno <address@hidden> wrote: 
> See <https://lists.gnu.org/archive/html/bug-gettext/2012-12/msg00058.html>.

This is a real problem that need to be solved, specially when you are
going to install gettext in a fresh environment with git.

> Currently "make all" fails after running autogen.sh, when
> gettext-tools/misc/archive.dir.tar is not there.  In that case users
> need to copy archive.dir.tar from pre-existing installation (or a
> tarball of the previous release).

Actually It fails for git clones, so the full history should be already
there. I think that an automated script to create it would be great,
because it will also automate new releases. As soon as the new tag is
added, the script would be able to find it and generate the right
contents and only would need tuning when a file is added or removed.

It will need some hacks (git plumbering?) to change the folders and this
sort of things, but the basic idea is:

"""
#!/bin/sh
(...)
check_paths_for_tag () {
  paths=$COMMON_FILES
  # Check tag for specific files
  if test_tag_is_older $1 vXXXX; then
  (...)
}

tags="$(git tag | fgrep -v branchpoint)"
for tag in $tags; do
  check_paths_for_tag $tag
  git archive --prefix=$tag/ $tag $paths
done | tar -cvf gettext-tools/misc/archive.dir.tar
"""

I could try to code out a working version for if you want to. Also make
rules would need a patch to generate it at build time when README-alpha
is present.

Best regards,
Miguel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]