src archive

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@517 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-30 08:25:38 +00:00
parent 98618f7086
commit 7a4669f64d

21
tools/archive.sh Executable file
View File

@@ -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/