From 9f52d1580a276de288f38d9a6a19f29a0ebe8533 Mon Sep 17 00:00:00 2001 From: meep-eep Date: Thu, 20 Feb 2003 16:07:41 +0000 Subject: [PATCH] Keep permissions when generating files from .in files. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@790 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/build/unix/config_functions | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sc2/build/unix/config_functions b/sc2/build/unix/config_functions index ccf4a359f..ab4352cec 100644 --- a/sc2/build/unix/config_functions +++ b/sc2/build/unix/config_functions @@ -365,6 +365,8 @@ EOF for FILE in $FILES; do FILE="${FILE%.in}" + cp -p -- "$FILE".in "$FILE" + # The copy is done so that the file modes are equal. $SED -f "${TEMPFILE}.sed" < "$FILE".in > "$FILE" done rm -- "${TEMPFILE}.sed"