From 7a4669f64d89a6ad521690eb14ec9c44690a9b9a Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Thu, 30 Oct 2025 08:25:38 +0000 Subject: [PATCH] src archive git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@517 b9cfdab3-6d41-4d17-bbe4-086880011989 --- tools/archive.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 tools/archive.sh diff --git a/tools/archive.sh b/tools/archive.sh new file mode 100755 index 0000000..ce0b037 --- /dev/null +++ b/tools/archive.sh @@ -0,0 +1,21 @@ +#!/bin/sh +# $Id$ +MAKE=make +if which gmake >/dev/null 2>&1; then + MAKE=gmake +fi +VERSION=`cat include/Mw/Version.h | grep -E 'MwVERSION' | grep -oE '"[^"]+"' | sed 's/"//g'` + +$MAKE clean +OLD=`pwd` +rm -rf /tmp/milsko-$VERSION *.tar.gz +mkdir -p /tmp/milsko-$VERSION + +cp -rf * /tmp/milsko-$VERSION/ + +cd /tmp + +tar czvf /tmp/milsko-$VERSION.tar.gz milsko-$VERSION + +rm -rf /tmp/milsko-$VERSION +mv /tmp/milsko-$VERSION.tar.gz $OLD/