]> granicus.if.org Git - recode/commitdiff
Remove after-patch hacks
authorReuben Thomas <rrt@sc3d.org>
Sat, 13 Jan 2018 17:07:30 +0000 (17:07 +0000)
committerReuben Thomas <rrt@sc3d.org>
Sun, 14 Jan 2018 20:45:31 +0000 (20:45 +0000)
Makefile.am
README.org
after-patch.py [deleted file]
after-patch.sh [deleted file]

index b6a41a2fad050e6a11a1f7f55fc275bc4d0e2172..6a0f4b2593291efe13cd770a07205891e07d242e 100644 (file)
@@ -22,7 +22,7 @@ AUTOMAKE_OPTIONS = gnits
 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
index 7bdac27deb0692bc976ef4a4310af125b9f01d72..992f641cf3f484f79bc8c9c116b46c7964bd1952 100644 (file)
@@ -197,11 +197,6 @@ Haible.
 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:
 
diff --git a/after-patch.py b/after-patch.py
deleted file mode 100755 (executable)
index a097255..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/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:])
diff --git a/after-patch.sh b/after-patch.sh
deleted file mode 100755 (executable)
index 33e0d98..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/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