mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2025-12-31 06:30:52 +00:00
src archive
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@517 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
21
tools/archive.sh
Executable file
21
tools/archive.sh
Executable 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/
|
||||
Reference in New Issue
Block a user