Przeglądaj źródła

[MacOS issue] Merge pull request #8 from chengs/chengs-patch-1

bug fix on find command
Clément Durand 7 lat temu
rodzic
commit
1d873308f5
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      Makefile
  2. 1 1
      source/Makefile

+ 1 - 1
Makefile

1
 .PHONY:all %.all install %.install clean %.clean cleandist %.cleandist release
1
 .PHONY:all %.all install %.install clean %.clean cleandist %.cleandist release
2
 
2
 
3
 SUBMAKE:=make -s -C
3
 SUBMAKE:=make -s -C
4
-SUBMAKABLE:=$(shell find -mindepth 2 -name '[Mm]akefile' | sed 's%^./%%;s%/[^/]*%%')
4
+SUBMAKABLE:=$(shell find . -mindepth 2 -name '[Mm]akefile' | sed 's%^./%%;s%/[^/]*%%')
5
 define submake
5
 define submake
6
 	@tput setaf 3
6
 	@tput setaf 3
7
 	@echo make[$1] $2
7
 	@echo make[$1] $2

+ 1 - 1
source/Makefile

24
 OUTPUT:=>/dev/null 2>&1
24
 OUTPUT:=>/dev/null 2>&1
25
 PKGDIR:=$(shell kpsewhich --show-path=ls-R | tr : '\n' | grep texmf | grep local | head -n1)
25
 PKGDIR:=$(shell kpsewhich --show-path=ls-R | tr : '\n' | grep texmf | grep local | head -n1)
26
 POLYPKGDIR:=$(PKGDIR)/tex/latex/polytechnique
26
 POLYPKGDIR:=$(PKGDIR)/tex/latex/polytechnique
27
-DTXFILES:=$(shell find -name '*.dtx')
27
+DTXFILES:=$(shell find . -name '*.dtx')
28
 GENFILES:=$(patsubst %.dtx,%.pdf,$(DTXFILES)) $(patsubst %.dtx,%.sty,$(DTXFILES))
28
 GENFILES:=$(patsubst %.dtx,%.pdf,$(DTXFILES)) $(patsubst %.dtx,%.sty,$(DTXFILES))
29
 
29
 
30
 all: package
30
 all: package