- Creates release tarball from *current* git branch - Includes tcc-doc.html - converts important windows files files to CRLF (requirement for the cmd.exe batch processor, convenience for reading the txt in notepad)
Unified · Split
| @@ -363,16 +363,6 @@ tcc.1: tcc-doc.texi · 362 unmodified lines | |||
| 363 | tcc-doc.info: tcc-doc.texi | 363 | tcc-doc.info: tcc-doc.texi |
| 364 | -makeinfo $< | 364 | -makeinfo $< |
| 365 | 365 | ||
| 366 | .PHONY: all clean tar distclean install uninstall FORCE | ||
| 367 | |||
| 368 | # tar release (use 'make -k tar' on a checkouted tree) | ||
| 369 | TCC-VERSION=tcc-$(shell cat VERSION) | ||
| 370 | tar: | ||
| 371 | rm -rf /tmp/$(TCC-VERSION) | ||
| 372 | cp -r . /tmp/$(TCC-VERSION) | ||
| 373 | ( cd /tmp ; tar zcvf ~/$(TCC-VERSION).tar.gz $(TCC-VERSION) --exclude CVS ) | ||
| 374 | rm -rf /tmp/$(TCC-VERSION) | ||
| 375 | |||
| 376 | # in tests subdir | 366 | # in tests subdir |
| 377 | export LIBTCC1 | 367 | export LIBTCC1 |
| 378 | 368 | ||
| @@ -395,4 +385,21 @@ config.mak: · 16 unmodified lines | |||
| 395 | @echo "Please run ./configure." | 385 | @echo "Please run ./configure." |
| 396 | @exit 1 | 386 | @exit 1 |
| 397 | 387 | ||
| 388 | # create release tarball from *current* git branch (including tcc-doc.html | ||
| 389 | # and converting two files to CRLF) | ||
| 390 | TCC-VERSION := tcc-$(shell cat VERSION) | ||
| 391 | tar: tcc-doc.html | ||
| 392 | mkdir $(TCC-VERSION) | ||
| 393 | ( cd $(TCC-VERSION) && git --git-dir ../.git checkout -f ) | ||
| 394 | cp tcc-doc.html $(TCC-VERSION) | ||
| 395 | for f in tcc-win32.txt build-tcc.bat ; do \ | ||
| 396 | cat win32/$$f | sed 's,\(.*\),\1\r,g' > $(TCC-VERSION)/win32/$$f ; \ | ||
| 397 | done | ||
| 398 | tar cjf $(TCC-VERSION).tar.bz2 $(TCC-VERSION) | ||
| 399 | rm -rf $(TCC-VERSION) | ||
| 400 | git reset | ||
| 401 | |||
| 402 | |||
| 403 | .PHONY: all clean tar distclean install uninstall FORCE | ||
| 404 | |||
| 398 | endif # ifeq ($(TOP),.) | 405 | endif # ifeq ($(TOP),.) |