Skip to content

Commit ed4fbde

Browse files
committed
dist: fix incorrect file/directory permission in zipball.
1 parent ed516db commit ed4fbde

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

utils/dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ RD = rm -rf
1111
ZIP = zip -rT
1212
MAKE = make
1313
SELF = utils/dist
14+
PERM = find . -type d -exec chmod 755 '{}' +; \
15+
find . -type f -exec chmod 644 '{}' +
1416

1517
dist:
1618
$(SELF) distclean
@@ -42,6 +44,7 @@ dir-tds: tex-dist doc-dist
4244
$(MD) $@/tex/latex/ $@/doc/latex/
4345
$(CP) tex-dist/ $@/tex/latex/$(TITLE)
4446
$(CP) doc-dist/ $@/doc/latex/$(TITLE)
47+
cd $@ && $(PERM)
4548

4649
dist-tds: $(TITLE)-$(VERSION).tds.zip
4750
$(TITLE)-$(VERSION).tds.zip: dir-tds
@@ -53,6 +56,7 @@ dir-ctan: README tex-dist doc-dist $(TITLE)-$(VERSION).tds.zip
5356
$(CP) tex-dist/ $@/$(TITLE)/tex
5457
$(CP) doc-dist/ $@/$(TITLE)/doc
5558
$(MV) $(TITLE)-$(VERSION).tds.zip $@/
59+
cd $@ && $(PERM)
5660

5761
dist-ctan: $(TITLE)-$(VERSION).zip
5862
$(TITLE)-$(VERSION).zip: dir-ctan

0 commit comments

Comments
 (0)