This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] Fix djunpack.bat nit


Hello,

Minor release nits:
- the generated djunpack.bat file was overwriting over the original CVS input file, not good for a second attempt at running the release scripts
- the md5.sum code was using similar logic


This patch updates src-release so that, for both djunpack.bat and md5.sum, generated file is moved directly into proto-toplev/ directory (avoiding any possability of overriding the corresponding CVS file).

committed/6.3
Andrew
2004-10-19  Andrew Cagney  <cagney@gnu.org>

	* src-release (do-djunpack, do-md5sum): Install the generated file
	directly into the proto-toplev/ directory.
	
Index: src-release
===================================================================
RCS file: /cvs/src/src/src-release,v
retrieving revision 1.13.2.1
diff -p -u -r1.13.2.1 src-release
--- src-release	19 Oct 2004 18:09:38 -0000	1.13.2.1
+++ src-release	19 Oct 2004 18:49:05 -0000
@@ -228,8 +228,9 @@ do-md5sum:
 	echo "==> Adding md5 checksum to top-level directory"
 	cd proto-toplev && find * -follow $(CVS_NAMES) -prune \
 			-o -type f -print \
-		| xargs $(MD5PROG) > ../md5.sum
-	mv md5.sum proto-toplev
+		| xargs $(MD5PROG) > ../md5.new
+	-rm -f proto-toplev/md5.sum
+	mv md5.new proto-toplev/md5.sum
 
 .PHONY: do-djunpack
 do-djunpack:
@@ -237,9 +238,8 @@ do-djunpack:
 	echo - 's /gdb-[0-9\.]*/$(PACKAGE)-'"$(VER)"'/'
 	sed < djunpack.bat > djunpack.new \
 		-e 's/gdb-[0-9][0-9\.]*/$(PACKAGE)-'"$(VER)"'/'
-	mv djunpack.new djunpack.bat
 	-rm -f proto-toplev/djunpack.bat
-	ln -s ../djunpack.bat proto-toplev/djunpack.bat
+	mv djunpack.new proto-toplev/djunpack.bat
 
 TEXINFO_SUPPORT= texinfo/texinfo.tex
 DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]