Skip to content

Commit 5ec4612

Browse files
sergiomb2twaugh
authored andcommitted
Add move-to-front to package
1 parent 9930b59 commit 5ec4612

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ bin_SCRIPTS = \
1111
scripts/recountdiff \
1212
scripts/unwrapdiff \
1313
scripts/dehtmldiff \
14+
scripts/move-to-front \
1415
scripts/espdiff
1516

1617
dist_bin_SCRIPTS = \
@@ -436,7 +437,6 @@ EXTRA_DIST = $(man_MANS) \
436437
patchutils.spec \
437438
doc/patchutils.xml \
438439
patchview/README.patchview \
439-
scripts/move-to-front \
440440
m4/gnulib-cache.m4 \
441441
Makefile.fuzz \
442442
fuzz/README.md fuzz/generate_corpus.sh fuzz/run_fuzz.sh fuzz/analyze_crashes.sh \

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ Patchutils is a small collection of programs that operate on patch files. It pro
3939

4040
- **flipdiff** - Exchanges the order of two patches.
4141

42+
- **move-to-front** - An example of how flipdiff can be used.
43+
4244
- **dehtmldiff** - Extracts a diff from an HTML page.
4345

4446
- **editdiff** - Edit a patch file interactively.

configure.ac

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,14 @@ gl_INIT
183183
AC_CONFIG_FILES([
184184
Makefile
185185
lib/Makefile
186+
scripts/fixcvsdiff
186187
scripts/splitdiff
187188
scripts/editdiff
188-
scripts/fixcvsdiff
189189
scripts/recountdiff
190190
scripts/unwrapdiff
191191
scripts/dehtmldiff
192192
scripts/espdiff
193+
scripts/move-to-front
193194
patchutils.spec
194195
])
195196
AC_OUTPUT

scripts/move-to-front renamed to scripts/move-to-front.in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
#!/bin/bash
2+
3+
# move-to-front - an example of how flipdiff can be used
4+
5+
if [ "x$1" == "x--version" ]
6+
then
7+
echo "move-to-front - patchutils version @VERSION@"
8+
exit 0
9+
fi
10+
211
if [ "$#" -eq 0 ] || [ "x$1" == "x--help" ]
312
then
413
echo "usage: move-to-front [PATCHES..] PATCH"

0 commit comments

Comments
 (0)