Fix for bug 406862 . Make NSPR release target work with MSYS.
authorjulien.pierre.boogz%sun.com
Thu, 13 Dec 2007 03:13:36 +0000
changeset 3898 b8daba273af4c8eab7a00dae80af264bec870705
parent 3897 c8dd93965eb4f199d508305b5c40cf571cd27fdc
child 3899 c0097673210be8cc63f9847f2e80f6ebebbf7830
push idunknown
push userunknown
push dateunknown
bugs406862
Fix for bug 406862 . Make NSPR release target work with MSYS.
Makefile.in
config/prmkdir.bat
--- a/Makefile.in
+++ b/Makefile.in
@@ -107,22 +107,22 @@ release::
 	echo "Manifest-Version: 1.0" > MANIFEST.MF; \
 	echo "" >> MANIFEST.MF; \
 	cd ..; rm -f mdheader.jar; zip $(ZIP_ASCII_OPT) -r mdheader.jar *; \
 	rm -rf META-INF
 ifeq ($(OS_ARCH),WINNT)
 	@if test ! -d $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); then \
 		rm -rf $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); \
 		echo "making directory $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)"; \
-		$(topsrcdir)/config/prmkdir.bat $(MDIST_DOS)\\$(MOD_NAME)\\$(BUILD_NUMBER); \
+		mkdir -p $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); \
 	fi
 	@if test ! -d $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME); then \
 		rm -rf $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME); \
 		echo "making directory $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME)"; \
-		$(topsrcdir)/config/prmkdir.bat $(MDIST_DOS)\\$(MOD_NAME)\\$(BUILD_NUMBER)\\$(RELEASE_OBJDIR_NAME); \
+		mkdir -p $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)/$(RELEASE_OBJDIR_NAME); \
 	fi
 else
 	@if test ! -d $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); then \
 		rm -rf $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); \
 		echo "making directory $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER)"; \
 		$(NSINSTALL) -D $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); \
 		chmod 775 $(MDIST)/$(MOD_NAME)/$(BUILD_NUMBER); \
 	fi
deleted file mode 100755
--- a/config/prmkdir.bat
+++ /dev/null
@@ -1,38 +0,0 @@
-REM 
-REM ***** BEGIN LICENSE BLOCK *****
-REM Version: MPL 1.1/GPL 2.0/LGPL 2.1
-REM
-REM The contents of this file are subject to the Mozilla Public License Version
-REM 1.1 (the "License"); you may not use this file except in compliance with
-REM the License. You may obtain a copy of the License at
-REM http://www.mozilla.org/MPL/
-REM
-REM Software distributed under the License is distributed on an "AS IS" basis,
-REM WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-REM for the specific language governing rights and limitations under the
-REM License.
-REM
-REM The Original Code is the Netscape Portable Runtime (NSPR).
-REM
-REM The Initial Developer of the Original Code is
-REM Netscape Communications Corporation.
-REM Portions created by the Initial Developer are Copyright (C) 1998-2000
-REM the Initial Developer. All Rights Reserved.
-REM
-REM Contributor(s):
-REM
-REM Alternatively, the contents of this file may be used under the terms of
-REM either the GNU General Public License Version 2 or later (the "GPL"), or
-REM the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-REM in which case the provisions of the GPL or the LGPL are applicable instead
-REM of those above. If you wish to allow use of your version of this file only
-REM under the terms of either the GPL or the LGPL, and not to allow others to
-REM use your version of this file under the terms of the MPL, indicate your
-REM decision by deleting the provisions above and replace them with the notice
-REM and other provisions required by the GPL or the LGPL. If you do not delete
-REM the provisions above, a recipient may use your version of this file under
-REM the terms of any one of the MPL, the GPL or the LGPL.
-REM
-REM ***** END LICENSE BLOCK *****
-
-mkdir %1