ObjFW  Check-in [2267fd9439]

Overview
Comment:Add "make tarball".
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 2267fd943905a59a7b6c848db2941cc83f8f98e8d437385ae16ce54a2ba4e4a4
User & Date: js on 2010-03-04 23:35:32
Other Links: manifest | tags
Context
2010-03-04
23:41
Set version to 0.3-dev. check-in: f11dc7d322 user: js tags: trunk
23:35
Add "make tarball". check-in: 2267fd9439 user: js tags: trunk
22:46
Make it easier to change library version. check-in: dda573f040 user: js tags: trunk
Changes

Modified Makefile from [541a9e3c5e] to [3cd5456a36].

28
29
30
31
32
33
34


















			if rm -f ${DESTDIR}${bindir}/$$i; then \
				${DELETE_OK}; \
			else \
				${DELETE_FAILED}; \
			fi \
		fi \
	done

























>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
			if rm -f ${DESTDIR}${bindir}/$$i; then \
				${DELETE_OK}; \
			else \
				${DELETE_FAILED}; \
			fi \
		fi \
	done

tarball:
	V=$$(fgrep VERSION= objfw-config.in | sed 's/VERSION="\(.*\)"/\1/'); \
	V2=$$(fgrep AC_INIT configure.ac | \
	      sed 's/AC_INIT([^,]*,\([^,]*\),.*/\1/' | sed 's/ //'); \
	if test x"$$V" != x"$$V2"; then \
		echo "objfw-config.h.in and configure.ac version mismatch!"; \
		exit 1; \
	fi; \
	echo "Generating tarball for version $$V..."; \
	rm -f objfw-$$V.tar.gz; \
	rm -fr objfw-$$V; \
	hg archive objfw-$$V; \
	cp configure config.h.in objfw-$$V; \
	cd objfw-$$V && rm -f .hg_archival.txt .hgignore .hgtags && cd ..; \
	tar cf objfw-$$V.tar objfw-$$V; \
	gzip -9 objfw-$$V.tar; \
	rm -fr objfw-$$V