From db0f4a22aa990029781c554437f06ee0f364d3a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Thu, 25 Sep 2025 15:47:03 +0100 Subject: [PATCH] Add move-to-front to package --- Makefile.am | 2 +- README.md | 2 ++ configure.ac | 3 ++- scripts/{move-to-front => move-to-front.in} | 9 +++++++++ 4 files changed, 14 insertions(+), 2 deletions(-) rename scripts/{move-to-front => move-to-front.in} (73%) diff --git a/Makefile.am b/Makefile.am index 28bd5518..c5ed8edf 100644 --- a/Makefile.am +++ b/Makefile.am @@ -11,6 +11,7 @@ bin_SCRIPTS = \ scripts/recountdiff \ scripts/unwrapdiff \ scripts/dehtmldiff \ + scripts/move-to-front \ scripts/espdiff dist_bin_SCRIPTS = \ @@ -436,7 +437,6 @@ EXTRA_DIST = $(man_MANS) \ patchutils.spec \ doc/patchutils.xml \ patchview/README.patchview \ - scripts/move-to-front \ m4/gnulib-cache.m4 \ Makefile.fuzz \ fuzz/README.md fuzz/generate_corpus.sh fuzz/run_fuzz.sh fuzz/analyze_crashes.sh \ diff --git a/README.md b/README.md index 18f3fbba..000859d5 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,8 @@ Patchutils is a small collection of programs that operate on patch files. It pro - **flipdiff** - Exchanges the order of two patches. +- **move-to-front** - An example of how flipdiff can be used. + - **dehtmldiff** - Extracts a diff from an HTML page. - **editdiff** - Edit a patch file interactively. diff --git a/configure.ac b/configure.ac index cc339dec..9ec56168 100644 --- a/configure.ac +++ b/configure.ac @@ -183,13 +183,14 @@ gl_INIT AC_CONFIG_FILES([ Makefile lib/Makefile +scripts/fixcvsdiff scripts/splitdiff scripts/editdiff -scripts/fixcvsdiff scripts/recountdiff scripts/unwrapdiff scripts/dehtmldiff scripts/espdiff +scripts/move-to-front patchutils.spec ]) AC_OUTPUT diff --git a/scripts/move-to-front b/scripts/move-to-front.in similarity index 73% rename from scripts/move-to-front rename to scripts/move-to-front.in index 1212fed7..a3f582fe 100755 --- a/scripts/move-to-front +++ b/scripts/move-to-front.in @@ -1,4 +1,13 @@ #!/bin/bash + +# move-to-front - an example of how flipdiff can be used + +if [ "x$1" == "x--version" ] +then + echo "move-to-front - patchutils version @VERSION@" + exit 0 +fi + if [ "$#" -eq 0 ] || [ "x$1" == "x--help" ] then echo "usage: move-to-front [PATCHES..] PATCH"