diff options
author | Justin Davis <jrcd83@gmail.com> | 2011-09-22 17:20:07 +0200 |
---|---|---|
committer | Justin Davis <jrcd83@gmail.com> | 2011-09-22 17:20:07 +0200 |
commit | 40a410969dc7ad4a7b28bd3a831a1bb60d088eef (patch) | |
tree | 58f07713420a6c935c85436a3d6ba2910af99156 /Makefile | |
parent | 58fc6f5e57eeeaca6e815bd3cb804cb453e05b0d (diff) | |
download | genpkg-40a410969dc7ad4a7b28bd3a831a1bb60d088eef.tar.gz genpkg-40a410969dc7ad4a7b28bd3a831a1bb60d088eef.tar.xz |
Do not download CPAN dists if it already exists in the CWD.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -26,14 +26,11 @@ tweakmeta: $(PKGS)/$(PKG)/PKGMETA fi $(PKGS)/$(PKG)/PKGMETA: prepare - @rm -rf tmp - @mkdir tmp - @cd tmp; \ + @[ -d '$(PKGS)/$(PKG)' ] || mkdir '$(PKGS)/$(PKG)' + @cd '$(PKGS)/$(PKG)'; \ PATH="$$PATH:$(BIN)" METABIN="$(BIN)/metas" \ PKGVAR="$(PKGVAR)" \ $(BIN)/makepkgmeta $(PKG) >PKGMETA - @rm -rf "$(PKGS)/$(PKG)" - @mv tmp "$(PKGS)/$(PKG)" @echo 'Created pkg/$(PKG)/PKGMETA.' prepare: |