• R/O
  • HTTP
  • SSH
  • HTTPS

nkf: Commit

nkfのGitリポジトリです。


Commit MetaInfo

Revision500dcf25714e1c0265cf79f8e49b6b6785eb2bb0 (tree)
Time2019-06-12 16:31:35
AuthorNARUSE, Yui <nurse@user...>
CommiterGitHub

Log Message

Merge pull request #7 from conao3/fix-mkdir-option

Add -p option for mkdir to suppress error.

Change Summary

Incremental Difference

--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ SHAR = shar
66 PERL = perl
77 RM = rm -rf
88 VERSION = 2.1.5
9-MKDIR = mkdir
9+MKDIR = $(shell if pwd | xargs mkdir 2>/dev/null -p ; then echo "mkdir -p"; else echo "mkdir"; fi)
1010 prefix = /usr/local
1111 PYTHON2 = python
1212 PYTHON3 = python
@@ -60,8 +60,8 @@ install-man-ja:
6060 cp -f nkf.1j $(prefix)/man/ja/man1/nkf.1
6161
6262 shar:
63- -mkdir nkf-$(VERSION)
64- -mkdir nkf-$(VERSION)/NKF.mod
63+ -$(MKDIR) nkf-$(VERSION)
64+ -$(MKDIR) nkf-$(VERSION)/NKF.mod
6565 for file in `cat MANIFEST`; \
6666 do \
6767 nkf -j -m0 $$file > nkf-$(VERSION)/$$file ; \
@@ -74,11 +74,11 @@ shar:
7474 -$(RM) nkf-$(VERSION)
7575
7676 tar:
77- -mkdir nkf-$(VERSION)
78- -mkdir nkf-$(VERSION)/NKF.mod
79- -mkdir nkf-$(VERSION)/NKF.python2
80- -mkdir nkf-$(VERSION)/NKF.python3
81- -mkdir nkf-$(VERSION)/man
77+ -$(MKDIR) nkf-$(VERSION)
78+ -$(MKDIR) nkf-$(VERSION)/NKF.mod
79+ -$(MKDIR) nkf-$(VERSION)/NKF.python2
80+ -$(MKDIR) nkf-$(VERSION)/NKF.python3
81+ -$(MKDIR) nkf-$(VERSION)/man
8282 for file in `cat MANIFEST`; \
8383 do \
8484 cp $$file nkf-$(VERSION)/$$file ; \
Show on old repository browser