2010-04-14 17:34:35 +05:30
|
|
|
PACKAGE=sysvinit
|
2018-05-21 01:40:54 +05:30
|
|
|
VERSION=$(shell sed -rn '1s/.*[[:blank:]]\((.*)\)[[:blank:]].*/\1/p' doc/Changelog)
|
2018-07-02 03:14:57 +05:30
|
|
|
|
|
|
|
all install clean distclean:
|
2018-09-09 07:59:02 +05:30
|
|
|
@rm -f $(PACKAGE)-$(VERSION).tar.xz $(PACKAGE)-$(VERSION).tar.xz.sig
|
2021-12-28 03:20:25 +05:30
|
|
|
$(MAKE) VERSION=$(VERSION) -C man $@
|
2018-07-02 03:14:57 +05:30
|
|
|
$(MAKE) VERSION=$(VERSION) -C src $@
|
|
|
|
|
2018-05-05 23:21:22 +05:30
|
|
|
GITLOGIN=$(shell git remote -v | head -n 1 | cut -f 1 -d '@' | sed 's/origin\t//g')
|
2018-06-04 04:44:01 +05:30
|
|
|
override TMP:=$(shell mktemp -du $(VERSION).XXXXXXXX)
|
2018-05-21 01:40:54 +05:30
|
|
|
override TARBALL:=$(TMP)/$(PACKAGE)-$(VERSION).tar.xz
|
|
|
|
override SFTPBATCH:=$(TMP)/$(VERSION)-sftpbatch
|
|
|
|
SOURCES=contrib COPYING COPYRIGHT doc Makefile man README src
|
2010-04-14 17:34:35 +05:30
|
|
|
|
2018-09-09 07:59:02 +05:30
|
|
|
dist: $(TARBALL).sig
|
2018-05-21 01:40:54 +05:30
|
|
|
@cp $(TARBALL) .
|
2018-09-09 07:59:02 +05:30
|
|
|
@cp $(TARBALL).sig .
|
2018-06-19 04:56:58 +05:30
|
|
|
@echo "tarball $(PACKAGE)-$(VERSION).tar.xz ready"
|
2018-05-21 01:40:54 +05:30
|
|
|
rm -rf $(TMP)
|
2014-02-08 00:43:52 +05:30
|
|
|
|
2010-04-14 17:34:35 +05:30
|
|
|
upload: $(SFTPBATCH)
|
2018-05-05 23:21:22 +05:30
|
|
|
echo @sftp -b $< $(GITLOGIN)@dl.sv.nongnu.org:/releases/$(PACKAGE)
|
2018-05-21 01:40:54 +05:30
|
|
|
rm -rf $(TMP)
|
2010-04-14 17:34:35 +05:30
|
|
|
|
|
|
|
$(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 >> $@
|
2018-05-21 01:40:54 +05:30
|
|
|
@echo rm $(PACKAGE)-latest.tar.bz2 >> $@
|
|
|
|
@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 $@ $<
|
|
|
|
|
2018-05-21 01:40:54 +05:30
|
|
|
$(TARBALL): $(TMP)/$(PACKAGE)-$(VERSION)
|
2018-06-19 04:56:58 +05:30
|
|
|
@tar --exclude=.git --owner=nobody --group=nogroup -cJf $@ -C $(TMP) $(PACKAGE)-$(VERSION)
|
2018-05-21 01:40:54 +05:30
|
|
|
|
2018-09-09 07:59:02 +05:30
|
|
|
$(TMP)/$(PACKAGE)-$(VERSION): distclean
|
2018-06-04 04:44:01 +05:30
|
|
|
@mkdir -p $(TMP)/$(PACKAGE)-$(VERSION)
|
2018-05-21 01:40:54 +05:30
|
|
|
@cp -R $(SOURCES) $(TMP)/$(PACKAGE)-$(VERSION)/
|
|
|
|
@chmod -R a+r,u+w,og-w $@
|
|
|
|
@find $@ -type d | xargs -r chmod a+rx,u+w,og-w
|
2021-12-28 03:20:25 +05:30
|
|
|
|