ACLOCAL = ./aclocal.sh @ACLOCAL@
ACLOCAL_AMFLAGS = -I m4
-EXTRA_DIST = COPYING-LIB aclocal.sh after-patch.py after-patch.sh \
+EXTRA_DIST = COPYING-LIB aclocal.sh \
m4/gnulib-cache.m4 tables.py \
keld/NomsSeulsfinal.lst keld/charsets.def keld/control.def \
keld/iso10646.def keld/mnemonics,ds keld/other.def keld/rfc1345.txt
Source files and various distributions (either latest, prestest, or
archive) are available through [[https://github.com/pinard/Recode/][GitHub]].
-File timestamps after checkout may trigger Make difficulties. As a
-way to avoid these, from the top level of the distribution, execute =sh
-after-patch.sh= before configuring. If you miss either *sh* or GNU
-*touch*, try =python after-patch.py= instead.
-
** Configure options
Once you have an unpacked distribution, see files:
+++ /dev/null
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-# Copyright © 2007 Progiciels Bourbeau-Pinard inc.
-# François Pinard <pinard@iro.umontreal.ca>, 2008.
-
-"""\
-After "patch", "git clone" or "git checkout", file timestamps may be a
-bit random, and unless you have all maintainer tools handy, it can put
-you in some misery. This script makes all timestamps to be identical.
-"""
-
-__metaclass__ = type
-import os, sys
-
-class Main:
-
- def main(self, *arguments):
- # Decode arguments. Should be none!
- import getopt
- options, arguments = getopt.getopt(arguments, '')
- for option, valeur in options:
- pass
- assert not arguments
- # Use a reference file.
- if not os.path.exists('configure.ac'):
- sys.exit("You should first cd to the distribution directory.")
- timestamp = os.path.getmtime('configure.ac')
- # Walk all files, changing their timestamp.
- stack = ['.']
- while stack:
- directory = stack.pop()
- for base in os.listdir(directory):
- if base == '.git':
- continue
- name = os.path.join(directory, base)
- if os.path.isdir(name):
- stack.append(name)
- elif os.path.isfile(name):
- os.utime(name, (os.path.getatime(name), timestamp))
-
-run = Main()
-main = run.main
-
-if __name__ == '__main__':
- main(*sys.argv[1:])
+++ /dev/null
-#!/bin/sh
-
-# After "patch", "git clone" or "git checkout", file timestamps may be a
-# bit random, and unless you have all maintainer tools handy, it can put
-# you in some misery. This script makes all timestamps to be identical.
-
-if test -f configure.ac; then
- find . -name .git -prune -o -type f -print | xargs touch -r configure.ac
-else
- echo >2 "You should first cd to the distribution directory."
- exit 1
-fi