diff options
| author | ruki <[email protected]> | 2019-07-19 23:57:54 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-07-19 17:47:29 +0800 |
| commit | 1c516661533fc17e31f6d1b90689f752e7ef83f2 (patch) | |
| tree | a460f09d870c20ca9af4bb1a1b3617bec14e6d9e /scripts | |
| parent | 1d319c55cf6ad622a64051a47879822f914ca66a (diff) | |
fix build-runfile.sh for macosx
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/makeself/build-runfile.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/makeself/build-runfile.sh b/scripts/makeself/build-runfile.sh index 76dc609a9..9909db271 100755 --- a/scripts/makeself/build-runfile.sh +++ b/scripts/makeself/build-runfile.sh @@ -8,11 +8,13 @@ temproot=/tmp/xmake-makeself # prepare files to pack # clean up temproot -rm -rf $temproot +if [ -d $temproot ]; then + rm -rf $temproot +fi mkdir -p $temproot # copy xmake repo to temproot/xmake-repo, remove git ignored files -cp -Tr $xmakeroot $temproot/xmake-repo +cp -r $xmakeroot $temproot/xmake-repo cd $temproot/xmake-repo git clean -dfX git submodule foreach git clean -dfX @@ -33,8 +35,8 @@ rm -rf ./core/src/pdcurses cd $temproot cp $buildroot/* . version=`cat ./xmake/core/xmake.lua | grep -E "^set_version" | grep -oE "[0-9]*\.[0-9]*\.[0-9]*"` -sed -i "s/#xmake-version#/$version/g" ./header -sed -i "s/#xmake-version#/$version/g" ./lsm +perl -pi -e "s/#xmake-version#/$version/g" ./header +perl -pi -e "s/#xmake-version#/$version/g" ./lsm # make run file cd $temproot |
