From bac3b0c2672cb14130e3ca45512e2c10df13a282 Mon Sep 17 00:00:00 2001 From: fred Date: Wed, 4 Jun 1997 21:36:17 +0000 Subject: [PATCH] lilypond-0.1.1 --- bin/make-patch | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100755 bin/make-patch diff --git a/bin/make-patch b/bin/make-patch new file mode 100755 index 0000000000..4c98e9f35a --- /dev/null +++ b/bin/make-patch @@ -0,0 +1,57 @@ +#!/bin/sh + +case $# in +0) echo make_patch old new name + exit 1;; +esac + +old=$1 +new=$2 +nm=$3- + +newarc=../releases/$nm$new.tar.gz +oldarc=../releases/$nm$old.tar.gz + + +if [ ! -x $nm$new ] +then + echo untarring .. + if [ ! -f $newarc ] + then + echo cant find $newarc + exit + fi + tar zfx $newarc +fi +if [ ! -x $nm$old ] +then + echo untarring + + if [ ! -f $oldarc ] + then + echo cant find $oldarc + exit + fi + tar zfx $oldarc +fi + +# not interested in auto generated files. +for a in lilypond.lsm INSTALL.text AUTHORS.text lilypond.spec configure; do + rm `find $nm$old $nm$new -name $a` +done + +cat < patch-$new +Generated with + + make_patch $1 $2 $3 + +usage + + cd lilypond-source-dir; patch -E -p0 < patch-$new + +Patches do not contain automatically generated files, +i.e. you should rerun configure +EOF + +(cd $nm$new; diff -urN ../$nm$old . >> ../patch-$new) +rm -rf $nm$old $nm$new -- 2.39.5