File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -23,17 +23,19 @@ all: boilerplates.made custom
2323
2424bpsrc = $(filter-out % ~,$(wildcard * --* ) )
2525boilerplates.made : $(bpsrc )
26- $(QUIET ) ls * --* 2> /dev/null | \
26+ $(QUIET ) umask 022 && ls * --* 2> /dev/null | \
2727 while read boilerplate; \
2828 do \
2929 case " $$ boilerplate" in * ~) continue ;; esac && \
3030 dst=` echo " $$ boilerplate" | sed -e ' s|^this|.|;s|--|/|g' ` && \
3131 dir=` expr " $$ dst" : ' \(.*\)/' ` && \
32- $( INSTALL ) -d -m 755 blt/$$ dir && \
32+ mkdir -p blt/$$ dir && \
3333 case " $$ boilerplate" in \
34- * --) ;; \
35- * ) cp -p $$ boilerplate blt/$$ dst ;; \
36- esac || exit ; \
34+ * --) continue ;; \
35+ esac && \
36+ cp $$ boilerplate blt/$$ dst && \
37+ if test -x " blt/$$ dst" ; then rx=rx; else rx=r; fi && \
38+ chmod a+$$ rx " blt/$$ dst" || exit ; \
3739 done && \
3840 date > $@
3941
You can’t perform that action at this time.
0 commit comments