Changeset 358 in Main for trunk/Makefile


Ignore:
Timestamp:
Oct 16, 2024, 7:49:46 PM (4 weeks ago)
Author:
Nishi
Message:

add src-archive

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r315 r358  
    1212FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM) PREFIX=$(PREFIX)
    1313
    14 .PHONY: all format clean ./Server ./Common ./Module get-version
     14.PHONY: all format clean ./Server ./Common ./Module get-version src-archive
    1515
    1616all: ./Server $(MODULE)
     17
     18src-archive: clean
     19        @svn cleanup --remove-unversioned
     20        cp -rf . /tmp/tewi-`grep "define TW_VERSION" Server/tw_version.h | grep -Eom 1 '"[^\]+' | sed 's/^"//g'`
     21        cd /tmp && tar --exclude .github -czvf tewi-`grep "define TW_VERSION" tewi-*/Server/tw_version.h | grep -Eom 1 '"[^\]+' | sed 's/^"//g'`.tar.gz tewi-`grep "define TW_VERSION" tewi-*/Server/tw_version.h | grep -Eom 1 '"[^\]+' | sed 's/^"//g'`
     22        mv /tmp/tewi-`grep "define TW_VERSION" Server/tw_version.h | grep -Eom 1 '"[^\]+' | sed 's/^"//g'`.tar.gz ./
    1723
    1824./Tool/option: ./Tool/option.c config.h
Note: See TracChangeset for help on using the changeset viewer.