From 28ad0e52a815546012aad7b418e3b6a3f246540e Mon Sep 17 00:00:00 2001 From: j8takagi Date: Mon, 22 Jul 2013 01:31:03 +0900 Subject: [PATCH] =?utf8?q?=E5=85=A8=E8=88=AC=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Makefile | 18 +++++++++--------- dpkg-history => dpkg-history.sh | 0 logcat => logcat.sh | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) rename dpkg-history => dpkg-history.sh (100%) mode change 100755 => 100644 rename logcat => logcat.sh (66%) mode change 100755 => 100644 diff --git a/Makefile b/Makefile index f72d59e..b3271e7 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,16 @@ -.PHONY: build install +TARGETS := logcat dpkg-history + +.PHONY: all install PREFIX = /usr/local INSTALLDIR = $(PREFIX)/bin -ECHO = echo INSTALL = install -build: - @$(ECHO) "nothing is needed to build." -install: logcat dpkg-history - $(INSTALL) -m 755 logcat $(INSTALLDIR) - $(INSTALL) -m 755 dpkg-history $(INSTALLDIR) +all: $(TARGET) + +install: $(TARGETS) + for f in $(TARGETS); do $(INSTALL) -m 755 $$f $(INSTALLDIR); done -clean: - @$(ECHO) "nothing is needed to clean." +distclean: + $(RM) $(TARGETS) diff --git a/dpkg-history b/dpkg-history.sh old mode 100755 new mode 100644 similarity index 100% rename from dpkg-history rename to dpkg-history.sh diff --git a/logcat b/logcat.sh old mode 100755 new mode 100644 similarity index 66% rename from logcat rename to logcat.sh index e9e5ed6..6668f23 --- a/logcat +++ b/logcat.sh @@ -2,4 +2,4 @@ # logcat # 指定したログを、logrotateした分も含めてすべて出力 # -gunzip $1.[0-9]* | cat - $1.[0-9]* $1 | sort +gunzip -c $1.[0-9]* | cat - $1.[0-9]* $1 | sort -- 2.18.0