diff options
| author | ruki <[email protected]> | 2022-12-27 00:26:41 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-12-27 00:26:41 +0800 |
| commit | 02fb7ef69e78a5d6a8e0066f8866684533836ac3 (patch) | |
| tree | 250bd2c0d19a4eb764e8f24887f6c863bdc57fa0 /scripts | |
| parent | 3cb3727b67b20187d04be2270c493d4ce6c6924f (diff) | |
improve archive
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/archive-all | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/scripts/archive-all b/scripts/archive-all index a0ca954da..cf397d7bd 100755 --- a/scripts/archive-all +++ b/scripts/archive-all @@ -20,17 +20,19 @@ git clean -dfX git submodule foreach git clean -dfX # copy files to tmpdir/xmake -topdir=$tmpdir/xmake -mkdir -p $topdir/xmake/scripts +version=`cat ./core/xmake.lua | grep -E "^set_version" | grep -oE "[0-9]*\.[0-9]*\.[0-9]*"` +srcdir=$tmpdir/xmake +topdir=$srcdir/xmake-$version +mkdir -p $topdir/scripts cd $tmpdir/repo || exit -cp -r ./core $topdir/xmake -cp -r ./xmake $topdir/xmake/xmake -cp ./scripts/*.sh $topdir/xmake/scripts -cp -r ./scripts/man $topdir/xmake/scripts -cp -r ./scripts/debian $topdir/xmake/scripts -cp ./*.md $topdir/xmake -cp configure $topdir/xmake -cd $topdir || exit +cp -r ./core $topdir +cp -r ./xmake $topdir/xmake +cp ./scripts/*.sh $topdir/scripts +cp -r ./scripts/man $topdir/scripts +cp -r ./scripts/debian $topdir/scripts +cp ./*.md $topdir +cp configure $topdir +cd $srcdir || exit rm -rf ./core/src/tbox/tbox/src/demo rm -rf ./core/src/luajit |
