summaryrefslogtreecommitdiff
path: root/cad/scv/files/patch-scripts-copyExamples.sh
blob: 8d80aeecfa30420fb8e5b6bb7c856d6e3bacaf95 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- scripts/copyExamples.sh.orig	Thu Aug  7 08:38:02 2003
+++ scripts/copyExamples.sh	Sat Dec 16 14:51:22 2006
@@ -1,4 +1,4 @@
-#!/bin/sh -h
+#!/bin/sh
 
 # copyExamples.sh <srcdir> <dstdir>
 
@@ -37,15 +37,13 @@
   for f in *[chp] *.v* *.tcl README; do
     if test -r $f; then
       rm -f $dstdir/$f
-      cp $f $dstdir
-      chmod u+w $dstdir/$f
+      install -m 644 $f $dstdir
     fi
   done
   # only copy Makefile in leaf dirs
   if test -r Makefile -a $isleaf = "yes"; then
     rm -f $dstdir/Makefile
-    cp Makefile $dstdir
-    chmod u+w $dstdir/Makefile
+    install -m 644 Makefile $dstdir
   fi
 
 fi