diff options
| author | ruki <[email protected]> | 2023-11-21 22:43:59 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-11-21 22:43:59 +0800 |
| commit | ed37d615b47d49362cf7771d6a3b483ba82adafd (patch) | |
| tree | cdb91b724324dcd2d03dc698b77df7991318710e /scripts | |
| parent | da2eec07d95b9671613b965c0eab042681c68ed4 (diff) | |
remove archive-all
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/archive-all | 61 | ||||
| -rwxr-xr-x | scripts/makeppa | 4 |
2 files changed, 3 insertions, 62 deletions
diff --git a/scripts/archive-all b/scripts/archive-all deleted file mode 100755 index 9770664b8..000000000 --- a/scripts/archive-all +++ /dev/null @@ -1,61 +0,0 @@ -#!/usr/bin/env bash - -# ./scripts/archive-all -tmpdir=/tmp/.xmake_archive -xmakeroot=`pwd` -artifactsdir=$xmakeroot/artifacts -if [ ! -d $artifactsdir ]; then - mkdir $artifactsdir -fi -if [ -d $tmpdir ]; then - rm -rf $tmpdir -fi -mkdir $tmpdir - -# clone xmake repo -cp -r $xmakeroot $tmpdir/repo -cd $tmpdir/repo -git reset --hard HEAD -git clean -dfX -git submodule foreach git clean -dfX - -# copy files to tmpdir/xmake -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 -cp -r ./xmake $topdir/xmake -cp ./scripts/*.sh $topdir/scripts -cp -r ./scripts/man $topdir/scripts -cp -r ./scripts/debian $topdir/scripts -cp -r ./scripts/msys $topdir/scripts -cp ./*.md $topdir -cp configure $topdir -rm -rf $topdir/core/src/tbox/tbox/src/demo -rm -rf $topdir/core/src/luajit -rm -rf $topdir/core/src/pdcurses -cd $srcdir || exit - -# archive files -outputfile=$artifactsdir/"xmake" -if [ -f "$outputfile.zip" ]; then - rm "$outputfile.zip" -fi -if [ -f "$outputfile.7z" ]; then - rm "$outputfile.7z" -fi -if [ -f "$outputfile.tar.gz" ]; then - rm "$outputfile.tar.gz" -fi -zip -qr -9 "$outputfile.zip" . -7z a "$outputfile.7z" . -#tar -czf "$outputfile.tar.gz" * -tar -cvf - * | gzip -9 - > "$outputfile.tar.gz" -shasum -a 256 "$outputfile.zip" -shasum -a 256 "$outputfile.7z" -shasum -a 256 "$outputfile.tar.gz" -ls -l "$outputfile.zip" -ls -l "$outputfile.7z" -ls -l "$outputfile.tar.gz" diff --git a/scripts/makeppa b/scripts/makeppa index e7dc02513..b3c5217a2 100755 --- a/scripts/makeppa +++ b/scripts/makeppa @@ -31,7 +31,9 @@ fi basename=xmake-$version+$patch$serie tarball=$workdir/$basename.tar.gz if [ ! -f $tarball ]; then - ./scripts/archive-all + cd core + xmake pack --autobuild=n --formats=src_zip,src_targz --basename=xmake -o ../artifacts + cd .. cp ./artifacts/xmake.tar.gz $tarball fi |
