~alpine/devel

patch and 2 questions for alpine-conf repo v1 PROPOSED

Dubiousjim: 3
 update-conf: fix version
 Makefile: remove dist target and associated vars
 Makefile: convert old-style suffix rules

 3 files changed, 6 insertions(+), 23 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/devel/patches/508/mbox | git am -3
Learn more about email & git

[alpine-devel] [PATCH] update-conf: fix version Export this patch

---
 update-conf.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/update-conf.in b/update-conf.in
index 18e4e7d..f287dd9 100644
--- a/update-conf.in
+++ b/update-conf.in
@@ -2,6 +2,8 @@


PREFIX=
VERSION=@VERSION@

. $PREFIX/lib/libalpine.sh

# set up temp dir
-- 
1.8.3.1



---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---

[alpine-devel] [PATCH 1/2] Makefile: remove dist target and associated vars Export this patch

---
 Makefile | 23 ++---------------------
 1 file changed, 2 insertions(+), 21 deletions(-)
diff --git a/Makefile b/Makefile
index 59d4e0a..aff475a 100644
--- a/Makefile
+++ b/Makefile
@@ -2,11 +2,7 @@ VERSION		:= 2.13.0

sysconfdir      ?= /etc/lbu

P		:= alpine-conf
PV		:= $(P)-$(VERSION)
TARBZ2		:= $(PV).tar.bz2
PREFIX		?=
TMP		:= $(PV)

LIB_FILES	:= libalpine.sh
SBIN_FILES	:= lbu\
@@ -34,12 +30,8 @@ SBIN_FILES	:= lbu\
BIN_FILES	:= uniso

SCRIPTS		:= $(LIB_FILES) $(SBIN_FILES)
SCRIPT_SOURCES	:= $(addsuffix .in,$(SCRIPTS))


ETC_LBU_FILES	:= lbu.conf
EXTRA_DIST	:= Makefile README
DIST_FILES	:= $(SCRIPT_SOURCES) $(ETC_LBU_FILES) $(EXTRA_DIST)

GIT_REV		:= $(shell test -d .git && git describe || echo exported)
ifneq ($(GIT_REV), exported)
@@ -55,7 +47,6 @@ WWW="http://alpinelinux.org/alpine-conf"


SED		:= sed
TAR		:= tar

SED_REPLACE	:= -e 's:@VERSION@:$(FULL_VERSION):g' \
			-e 's:@PREFIX@:$(PREFIX):g' \
@@ -68,23 +59,13 @@ SED_REPLACE	:= -e 's:@VERSION@:$(FULL_VERSION):g' \
.in:
	${SED} ${SED_REPLACE} ${SED_EXTRA} $< > $@

.PHONY:	all apk clean dist install uninstall
.PHONY:	all apk clean install uninstall
all:	$(SCRIPTS) $(BIN_FILES)

uniso:	uniso.c
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^

apk:	$(APKF)

dist:	$(TARBZ2)


$(TARBZ2): $(DIST_FILES)
	rm -rf $(TMP)
	mkdir -p $(TMP)
	cp $(DIST_FILES) $(TMP)
	$(TAR) -cjf $@ $(TMP)
	rm -rf $(TMP)
	
install: $(BIN_FILES) $(SBIN_FILES) $(LIB_FILES) $(ETC_LBU_FILES)
	install -m 755 -d $(DESTDIR)/$(PREFIX)/bin
@@ -105,5 +86,5 @@ uninstall:
	done
	
clean:
	rm -rf $(SCRIPTS) $(BIN_FILES) $(TMP) $(TARBZ2)
	rm -rf $(SCRIPTS) $(BIN_FILES)

-- 
1.8.3.3



---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---

[alpine-devel] [PATCH 2/2] Makefile: convert old-style suffix rules Export this patch

---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index aff475a..8f1b113 100644
--- a/Makefile
+++ b/Makefile
@@ -53,10 +53,10 @@ SED_REPLACE	:= -e 's:@VERSION@:$(FULL_VERSION):g' \
			-e 's:@sysconfdir@:$(sysconfdir):g'

.SUFFIXES:	.sh.in .in
.sh.in.sh:
%.sh: %.sh.in
	${SED} ${SED_REPLACE} ${SED_EXTRA} $< > $@

.in:
%: %.in
	${SED} ${SED_REPLACE} ${SED_EXTRA} $< > $@

.PHONY:	all apk clean install uninstall
-- 
1.8.3.3



---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---