Last active
March 4, 2024 14:42
Revisions
-
postmodern revised this gist
Jan 5, 2013 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -41,9 +41,9 @@ tag: release: $(PKG) $(SIG) tag install: for dir in $(INSTALL_DIRS); do mkdir -p $(PREFIX)/$$dir; done for file in $(INSTALL_FILES); do cp $$file $(PREFIX)/$$file; done mkdir -p $(DOC_DIR) cp -r $(DOC_FILES) $(DOC_DIR)/ uninstall: -
postmodern revised this gist
Nov 26, 2012 . 1 changed file with 11 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,10 @@ NAME=project VERSION=0.0.1 DIRS=etc lib bin sbin share INSTALL_DIRS=`find $(DIRS) -type d 2>/dev/null` INSTALL_FILES=`find $(DIRS) -type f 2>/dev/null` DOC_FILES=*.md *.txt PKG_DIR=pkg PKG_NAME=$(NAME)-$(VERSION) @@ -17,7 +17,7 @@ DOC_DIR=$(PREFIX)/share/doc/$(PKG_NAME) pkg: mkdir -p $(PKG_DIR) $(PKG): pkg git archive --output=$(PKG) --prefix=$(PKG_NAME)/ HEAD build: $(PKG) @@ -32,6 +32,8 @@ clean: all: $(PKG) $(SIG) test: tag: git tag v$(VERSION) git push --tags @@ -46,4 +48,7 @@ install: uninstall: for file in $(INSTALL_FILES); do rm -f $(PREFIX)/$$file; done rm -rf $(DOC_DIR) .PHONY: build sign clean test tag release install uninstall all -
postmodern revised this gist
Nov 26, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -18,7 +18,7 @@ pkg: mkdir -p $(PKG_DIR) $(PKG): pkg $(FILES) git archive --output=$(PKG) --prefix=$(PKG_NAME)/ HEAD build: $(PKG) -
postmodern revised this gist
Nov 26, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,7 +11,7 @@ PKG_NAME=$(NAME)-$(VERSION) PKG=$(PKG_DIR)/$(PKG_NAME).tar.gz SIG=$(PKG_DIR)/$(PKG_NAME).asc PREFIX?=/usr/local DOC_DIR=$(PREFIX)/share/doc/$(PKG_NAME) pkg: -
postmodern revised this gist
Nov 20, 2012 . 1 changed file with 7 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,9 +2,9 @@ NAME=project VERSION=0.0.1 FILES=$(shell git ls-files 2>/dev/null) INSTALL_DIRS=$(shell find etc lib bin sbin share -type d 2>/dev/null) INSTALL_FILES=$(shell find etc lib bin sbin share -type f 2>/dev/null) DOC_FILES=$(shell find *.md *.tt *.txt 2>/dev/null) PKG_DIR=pkg PKG_NAME=$(NAME)-$(VERSION) @@ -39,11 +39,11 @@ tag: release: $(PKG) $(SIG) tag install: for dir in $(INSTALL_DIRS); do install -d $(PREFIX)/$$dir; done for file in $(INSTALL_FILES); do install $$file $(PREFIX)/$$file; done install -d $(DOC_DIR) cp -r $(DOC_FILES) $(DOC_DIR)/ uninstall: for file in $(INSTALL_FILES); do rm -f $(PREFIX)/$$file; done rm -rf $(DOC_DIR) -
postmodern revised this gist
Nov 15, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ NAME=project VERSION=0.0.1 FILES=$(shell git ls-files 2>/dev/null) INSTALL_DIRS={etc,lib,bin,sbin,share} DOC_FILES=doc/* EXTRA_DOC_FILES=*.{md,tt,txt} -
postmodern revised this gist
Oct 24, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -39,7 +39,7 @@ tag: release: $(PKG) $(SIG) tag install: for dir in `find $(INSTALL_DIRS) -type d 2>/dev/null`; do install -d $(PREFIX)/$$dir; done for file in `find $(INSTALL_DIRS) -type f 2>/dev/null`; do install $$file $(PREFIX)/$$file; done install -d $(DOC_DIR) cp -r $(DOC_FILES) $(EXTRA_DOC_FILES) $(DOC_DIR)/ 2>/dev/null || true -
postmodern revised this gist
Oct 24, 2012 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -39,10 +39,10 @@ tag: release: $(PKG) $(SIG) tag install: for dir in `find $(INSTALL_DIRS) -type d 2>/dev/null`; do install -d $(PREFIX)/$$file; done for file in `find $(INSTALL_DIRS) -type f 2>/dev/null`; do install $$file $(PREFIX)/$$file; done install -d $(DOC_DIR) cp -r $(DOC_FILES) $(EXTRA_DOC_FILES) $(DOC_DIR)/ 2>/dev/null || true uninstall: for file in `find $(INSTALL_DIRS) -type f 2>/dev/null`; do rm -f $(PREFIX)/$$file; done -
postmodern revised this gist
Sep 24, 2012 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,7 @@ EXTRA_DOC_FILES=*.{md,tt,txt} PKG_DIR=pkg PKG_NAME=$(NAME)-$(VERSION) PKG=$(PKG_DIR)/$(PKG_NAME).tar.gz SIG=$(PKG_DIR)/$(PKG_NAME).asc PREFIX=/usr/local @@ -18,7 +18,7 @@ pkg: mkdir -p $(PKG_DIR) $(PKG): pkg $(FILES) git archive --output=$(PKG) --prefix=$(PKG_NAME)/ master build: $(PKG) -
postmodern revised this gist
Aug 14, 2012 . 1 changed file with 8 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -27,11 +27,17 @@ $(SIG): $(PKG) sign: $(SIG) clean: rm -f $(PKG) $(SIG) all: $(PKG) $(SIG) tag: git tag v$(VERSION) git push --tags release: $(PKG) $(SIG) tag install: for file in `find $(INSTALL_DIRS) -type f 2>/dev/null`; do install -D $$file $(PREFIX)/$$file; done install -d $(DOC_DIR) -
postmodern revised this gist
Aug 14, 2012 . 1 changed file with 6 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,14 +14,16 @@ SIG=$(PKG_DIR)/$(PKG_NAME).asc PREFIX=/usr/local DOC_DIR=$(PREFIX)/share/doc/$(PKG_NAME) pkg: mkdir -p $(PKG_DIR) $(PKG): pkg $(FILES) tar -cjvf $(PKG) --transform 's|^|$(PKG_NAME)/|' $(FILES) build: $(PKG) $(SIG): $(PKG) gpg --sign --detach-sign --armor $(PKG) sign: $(SIG) -
postmodern revised this gist
Aug 6, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,7 +14,7 @@ SIG=$(PKG_DIR)/$(PKG_NAME).asc PREFIX=/usr/local DOC_DIR=$(PREFIX)/share/doc/$(PKG_NAME) $(PKG): $(FILES) mkdir -p $(PKG_DIR) tar -cjvf $(PKG) --transform 's|^|$(PKG_NAME)/|' $(FILES) -
postmodern revised this gist
Aug 6, 2012 . 1 changed file with 4 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,16 +2,17 @@ NAME=project VERSION=0.0.1 FILES=$(shell git ls-files) INSTALL_DIRS={etc,lib,bin,sbin,share} DOC_FILES=doc/* EXTRA_DOC_FILES=*.{md,tt,txt} PKG_DIR=pkg PKG_NAME=$(NAME)-$(VERSION) PKG=$(PKG_DIR)/$(PKG_NAME).tar.bz2 SIG=$(PKG_DIR)/$(PKG_NAME).asc PREFIX=/usr/local DOC_DIR=$(PREFIX)/share/doc/$(PKG_NAME) $(PKG): $(PKG_DIR) $(FILES) mkdir -p $(PKG_DIR) -
postmodern revised this gist
Aug 6, 2012 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,7 @@ PKG=$(PKG_DIR)/$(PKG_NAME).tar.bz2 SIG=$(PKG_DIR)/$(PKG_NAME).asc PREFIX=/usr/local DOC_DIR=$(PREFIX)/share/doc/$(PKG_NAME) INSTALL_DIRS={etc,lib,bin,sbin,share} DOC_FILES=doc/* EXTRA_DOC_FILES=*.{md,tt,txt} @@ -32,8 +32,8 @@ clean: install: for file in `find $(INSTALL_DIRS) -type f 2>/dev/null`; do install -D $$file $(PREFIX)/$$file; done install -d $(DOC_DIR) cp -r $(DOC_FILES) $(DOC_DIR)/ 2>/dev/null || true cp -r $(EXTRA_DOC_FILES) $(DOC_DIR)/ 2>/dev/null || true uninstall: for file in `find $(INSTALL_DIRS) -type f 2>/dev/null`; do rm -f $(PREFIX)/$$file; done -
postmodern revised this gist
Aug 6, 2012 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -31,10 +31,10 @@ clean: install: for file in `find $(INSTALL_DIRS) -type f 2>/dev/null`; do install -D $$file $(PREFIX)/$$file; done install -d $(DOC_DIR) cp -r $(DOC_FILES) $(DOC_DIR) 2>/dev/null || true cp -r $(EXTRA_DOC_FILES) $(DOC_DIR) 2>/dev/null || true uninstall: for file in `find $(INSTALL_DIRS) -type f 2>/dev/null`; do rm -f $(PREFIX)/$$file; done rm -rf $(DOC_DIR) -
postmodern revised this gist
Aug 6, 2012 . 1 changed file with 10 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,26 +2,29 @@ NAME=project VERSION=0.0.1 FILES=$(shell git ls-files) PKG_DIR=pkg PKG_NAME=$(NAME)-$(VERSION) PKG=$(PKG_DIR)/$(PKG_NAME).tar.bz2 SIG=$(PKG_DIR)/$(PKG_NAME).asc PREFIX=/usr/local DOC_DIR=$(PREFIX)/share/doc/$(NAME)-$(VERSION)/ INSTALL_DIRS={etc,lib,bin,sbin,share} DOC_FILES=doc/* EXTRA_DOC_FILES=*.{md,tt,txt} $(PKG): $(PKG_DIR) $(FILES) mkdir -p $(PKG_DIR) tar -cjvf $(PKG) --transform 's|^|$(PKG_NAME)/|' $(FILES) pkg: $(PKG) $(SIG): $(TAR) gpg --sign --detach-sign --armor $(TAR) sign: $(SIG) all: $(PKG) $(SIG) clean: rm -f $(PKG) $(SIG) -
postmodern revised this gist
Aug 6, 2012 . 1 changed file with 8 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,6 +6,10 @@ PKG=$(NAME)-$(VERSION).tar.bz2 SIG=$(PKG).asc PREFIX=/usr/local DOC_DIR=$(PREFIX)/share/doc/$(NAME)-$(VERSION)/ INSTALL_DIRS={etc,lib,bin,sbin,share} DOC_FILES=doc/* EXTRA_DOC_FILES=*.{md,tt,txt} $(PKG): $(FILES) tar -cjvf $(PKG) $(FILES) @@ -23,10 +27,11 @@ clean: rm -f $(PKG) $(SIG) install: for file in `find $(INSTALL_DIRS) -type f 2>/dev/null`; do install -D $$file $(PREFIX)/$$file; done install -d $(PREFIX)/share/doc/$(NAME)-$(VERSION)/ cp -r $(DOC_FILES) $(DOC_DIR) 2>/dev/null || true cp -r $(EXTRA_DOC_FILES) $(DOC_DIR) 2>/dev/null || true uninstall: for file in `find $(INSTALL_DIRS) -type f 2>/dev/null`; do rm -f $(PREFIX)/$$file; done rm -rf $(PREFIX)/share/doc/$(NAME)-$(VERSION)/ -
postmodern revised this gist
Aug 1, 2012 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -23,10 +23,10 @@ clean: rm -f $(PKG) $(SIG) install: for file in `find {etc,lib,bin,sbin,share} -type f`; do install -D $$file $(PREFIX)/$$file; done install -d $(PREFIX)/share/doc/$(NAME)-$(VERSION)/ cp -r doc/* *.{md,tt,txt} $(PREFIX)/share/doc/$(NAME)-$(VERSION)/ uninstall: for file in `find {etc,lib,bin,sbin,share} -type f`; do rm -f $(PREFIX)/$$file; done rm -rf $(PREFIX)/share/doc/$(NAME)-$(VERSION)/ -
postmodern revised this gist
Aug 1, 2012 . 1 changed file with 7 additions and 20 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,23 +2,10 @@ NAME=project VERSION=0.0.1 FILES=$(shell git ls-files) PKG=$(NAME)-$(VERSION).tar.bz2 SIG=$(PKG).asc PREFIX=/usr/local $(PKG): $(FILES) tar -cjvf $(PKG) $(FILES) @@ -36,10 +23,10 @@ clean: rm -f $(PKG) $(SIG) install: for file in `find {lib,bin,sbin,share} -type f`; do install -D $$file $(PREFIX)/$$file; done install -d $(PREFIX)/share/doc/$(NAME)-$(VERSION)/ cp -r doc/* *.{md,tt,txt} $(PREFIX)/share/doc/$(NAME)-$(VERSION)/ uninstall: for file in `find {lib,bin,sbin,share} -type f`; do rm $(PREFIX)/$$file; done rm -rf $(PREFIX)/share/doc/$(NAME)-$(VERSION)/ -
postmodern revised this gist
Aug 1, 2012 . 1 changed file with 11 additions and 13 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,7 +13,11 @@ PKG=$(NAME)-$(VERSION).tar.bz2 SIG=$(PKG).asc PREFIX=/usr/local LIB_DIR=$(PREFIX)/lib BIN_DIR=$(PREFIX)/bin SBIN_DIR=$(PREFIX)/sbin SHARE_DIR=$(PREFIX)/share MAN_DIR=$(SHARE_DIR)/man DOC_DIR=$(SHARE_DIR)/doc/$(NAME)-$(VERSION) $(PKG): $(FILES) @@ -32,16 +36,10 @@ clean: rm -f $(PKG) $(SIG) install: cp -r lib/* $(LIB_DIR)/ cp -r bin/* $(BIN_DIR)/ cp -r sbin/* $(SBIN_DIR)/ cp -r man/* $(MAN_DIR)/ mkdir -p $(DOC_DIR)/ cp -r doc/* $(DOC_DIR)/ cp *.{md,tt,txt} $(DOC_DIR)/ -
There are no files selected for viewing
-
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,47 @@ NAME=project VERSION=0.0.1 FILES=$(shell git ls-files) BIN_FILES=$(shell find bin/ -type f) SBIN_FILES=$(shell find sbin/ -type f) LIB_FILES=$(shell find lib/ -type f) MAN_FILES=$(shell find man/ -type f) DOC_FILES=$(shell find doc/ -type f) DOC_FILES+=$(shell find . -type f -name *.{md,tt,txt}) PKG=$(NAME)-$(VERSION).tar.bz2 SIG=$(PKG).asc PREFIX=/usr/local SHARE_DIR=$(PREFIX)/share DOC_DIR=$(SHARE_DIR)/doc/$(NAME)-$(VERSION) $(PKG): $(FILES) tar -cjvf $(PKG) $(FILES) pkg: $(PKG) $(SIG): $(PKG) gpg --sign --detach-sign --armor $(PKG) sign: $(SIG) all: pkg sign clean: rm -f $(PKG) $(SIG) install: for file in $(BIN_FILES); do cp $$file $(PREFIX)/$$file; done for file in $(SBIN_FILES); do cp $$file $(PREFIX)/$$file; done for file in $(LIB_FILES); do cp $$file $(PREFIX)/$$file; done for file in $(MAN_FILES); do cp $$file $(SHARE_DIR)/$$file; done mkdir -p $(DOC_DIR) cp $(DOC_FILES) $(DOC_DIR) uninstall: for file in $(BIN_FILES); do rm $(PREFIX)/$$file; done for file in $(SBIN_FILES); do rm $(PREFIX)/$$file; done for file in $(LIB_FILES); do rm $(PREFIX)/$$file; done for file in $(MAN_FILES); do rm $(SHARE_DIR)/$$file; done rm -rf $(DOC_DIR)