From 038164b6056ec2fc521cdc796694282448c52995 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 25 Dec 2022 09:42:22 +0800 Subject: improve archive --- scripts/archive-all | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'scripts') diff --git a/scripts/archive-all b/scripts/archive-all index bb07fe090..a0ca954da 100755 --- a/scripts/archive-all +++ b/scripts/archive-all @@ -20,16 +20,17 @@ git clean -dfX git submodule foreach git clean -dfX # copy files to tmpdir/xmake -mkdir -p $tmpdir/xmake/scripts +topdir=$tmpdir/xmake +mkdir -p $topdir/xmake/scripts cd $tmpdir/repo || exit -cp -r ./core $tmpdir/xmake -cp -r ./xmake $tmpdir/xmake/xmake -cp ./scripts/*.sh $tmpdir/xmake/scripts -cp -r ./scripts/man $tmpdir/xmake/scripts -cp -r ./scripts/debian $tmpdir/xmake/scripts -cp ./*.md $tmpdir/xmake -cp configure $tmpdir/xmake -cd $tmpdir/xmake || 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 rm -rf ./core/src/tbox/tbox/src/demo rm -rf ./core/src/luajit -- cgit v1.3.1