Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ bin_SCRIPTS = \
scripts/recountdiff \
scripts/unwrapdiff \
scripts/dehtmldiff \
scripts/move-to-front \
scripts/espdiff

dist_bin_SCRIPTS = \
Expand Down Expand Up @@ -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 \
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 9 additions & 0 deletions scripts/move-to-front → scripts/move-to-front.in
Original file line number Diff line number Diff line change
@@ -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"
Expand Down