diff options
| author | ruki <[email protected]> | 2019-08-24 08:51:16 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-08-24 08:51:16 +0800 |
| commit | 75f4eab36fdd0a4bf90ad12a924d6ab153ddbcc1 (patch) | |
| tree | b1fa2c43768c84157104f22adb49bb2c354a6bc3 /scripts/makeself | |
| parent | fd3cc28e03bafc484866113e6a72b6cccc542bbb (diff) | |
improve archive scripts
Diffstat (limited to 'scripts/makeself')
| -rwxr-xr-x | scripts/makeself/build-runfile.sh | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/scripts/makeself/build-runfile.sh b/scripts/makeself/build-runfile.sh index 6662eded3..a34fba938 100755 --- a/scripts/makeself/build-runfile.sh +++ b/scripts/makeself/build-runfile.sh @@ -10,21 +10,23 @@ if [ -d $tmpdir ]; then fi mkdir -p $tmpdir -# copy xmake repo to tmpdir/xmake-repo, remove git ignored files -cp -r $xmakeroot $tmpdir/xmake-repo -cd $tmpdir/xmake-repo +# copy xmake repo to tmpdir/repo, remove git ignored files +cp -r $xmakeroot $tmpdir/repo +cd $tmpdir/repo || exit +git reset --hard HEAD git clean -dfX git submodule foreach git clean -dfX # copy files to tmpdir/xmake mkdir -p $tmpdir/xmake/scripts -cd $tmpdir/xmake-repo +xmake l -v private.utils.bcsave -s -o $tmpdir/repo/bcxmake $tmpdir/repo/xmake || exit +cd $tmpdir/repo || exit cp -r ./core $tmpdir/xmake -cp -r ./xmake $tmpdir/xmake +mv bcxmake $tmpdir/xmake/xmake cp ./scripts/get.sh $tmpdir/xmake/scripts cp ./*.md $tmpdir/xmake cp makefile $tmpdir/xmake -cd $tmpdir/xmake +cd $tmpdir/xmake || exit rm -rf ./core/src/tbox/tbox/src/demo rm -rf ./core/src/tbox/tbox/src/tbox/platform/windows rm -rf ./core/src/pdcurses |
