全般を修正 master
authorj8takagi <j8takagi@nifty.com>
Sun, 21 Jul 2013 16:31:03 +0000 (01:31 +0900)
committerj8takagi <j8takagi@nifty.com>
Sun, 21 Jul 2013 16:31:03 +0000 (01:31 +0900)
Makefile
dpkg-history.sh [moved from dpkg-history with 100% similarity, mode: 0644]
logcat.sh [moved from logcat with 66% similarity, mode: 0644]

index f72d59e..b3271e7 100644 (file)
--- 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)
old mode 100755 (executable)
new mode 100644 (file)
similarity index 100%
rename from dpkg-history
rename to dpkg-history.sh
old mode 100755 (executable)
new mode 100644 (file)
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