History

Makefile: revamp "tar" target

- 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)

grischka committed 13 years ago

Commit 5ebc6a91 parent b1743991 file · +17 −10Browse files

Unified · Split

Makefile+17−10
@@ -363,16 +363,6 @@ tcc.1: tcc-doc.texi · 362 unmodified lines
363363 tcc-doc.info: tcc-doc.texi
364364 -makeinfo $<
365365
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−
376366 # in tests subdir
377367 export LIBTCC1
378368
@@ -395,4 +385,21 @@ config.mak: · 16 unmodified lines
395385 @echo "Please run ./configure."
396386 @exit 1
397387
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+
398405 endif # ifeq ($(TOP),.)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t