2009-11-15 03:01:20 +05:30
|
|
|
all install clean distclean:
|
|
|
|
$(MAKE) -C src $@
|
2010-04-14 17:34:35 +05:30
|
|
|
|
|
|
|
PACKAGE=sysvinit
|
|
|
|
VERSION=$(shell sed -rn '1s/.*[[:blank:]]\((.*)\)[[:blank:]].*/\1/p' doc/Changelog)
|
2018-02-24 03:38:34 +05:30
|
|
|
GITLOGIN=$(shell git remote -v | head -n 1 | cut -f 3 -d '/' | cut -f 1 -d '@')
|
2010-04-14 17:34:35 +05:30
|
|
|
override TMP:=$(shell mktemp -d $(VERSION).XXXXXXXX)
|
|
|
|
override TARBALL:=$(TMP)/$(PACKAGE)-$(VERSION).tar.bz2
|
|
|
|
override SFTPBATCH:=$(TMP)/$(VERSION)-sftpbatch
|
2018-02-22 03:06:04 +05:30
|
|
|
SOURCES=contrib COPYING COPYRIGHT doc Makefile man README src
|
2010-04-14 17:34:35 +05:30
|
|
|
|
2014-02-08 00:43:52 +05:30
|
|
|
dist: $(TARBALL)
|
|
|
|
@cp $(TARBALL) .
|
|
|
|
@echo "tarball $(PACKAGE)-$(VERSION).tar.bz2 ready"
|
|
|
|
rm -rf $(TMP)
|
|
|
|
|
2010-04-14 17:34:35 +05:30
|
|
|
upload: $(SFTPBATCH)
|
2018-02-24 03:38:34 +05:30
|
|
|
echo @sftp -b $< $(GITLOGIN)@dl.sv.nongnu.org:/releases/$(PACKAGE)
|
2010-04-14 17:34:35 +05:30
|
|
|
rm -rf $(TMP)
|
|
|
|
|
|
|
|
$(SFTPBATCH): $(TARBALL).sig
|
|
|
|
@echo progress > $@
|
|
|
|
@echo put $(TARBALL) >> $@
|
2010-04-29 16:11:19 +05:30
|
|
|
@echo chmod 664 $(notdir $(TARBALL)) >> $@
|
2010-04-14 17:34:35 +05:30
|
|
|
@echo put $(TARBALL).sig >> $@
|
2010-04-29 16:11:19 +05:30
|
|
|
@echo chmod 664 $(notdir $(TARBALL)).sig >> $@
|
2010-04-14 17:34:35 +05:30
|
|
|
@echo rm $(PACKAGE)-latest.tar.bz2 >> $@
|
2010-04-29 16:11:19 +05:30
|
|
|
@echo symlink $(notdir $(TARBALL)) $(PACKAGE)-latest.tar.bz2 >> $@
|
2010-04-14 17:34:35 +05:30
|
|
|
@echo quit >> $@
|
|
|
|
|
|
|
|
$(TARBALL).sig: $(TARBALL)
|
|
|
|
@gpg -q -ba --use-agent -o $@ $<
|
|
|
|
|
|
|
|
$(TARBALL): $(TMP)/$(PACKAGE)-$(VERSION)
|
2018-02-22 03:06:04 +05:30
|
|
|
@tar --exclude=.git --bzip2 --owner=nobody --group=nogroup -cf $@ -C $(TMP) $(PACKAGE)-$(VERSION)
|
2010-04-14 17:34:35 +05:30
|
|
|
|
2018-02-22 03:06:04 +05:30
|
|
|
$(TMP)/$(PACKAGE)-$(VERSION):
|
|
|
|
@mkdir $(TMP)/$(PACKAGE)-$(VERSION)
|
|
|
|
@cp -R $(SOURCES) $(TMP)/$(PACKAGE)-$(VERSION)/
|
2010-04-14 17:34:35 +05:30
|
|
|
@chmod -R a+r,u+w,og-w $@
|
|
|
|
@find $@ -type d | xargs -r chmod a+rx,u+w,og-w
|