More improvements to the build script

This commit is contained in:
RichardG867
2021-11-17 18:01:15 -03:00
parent fbb7cecce0
commit daa8f6731c
2 changed files with 10 additions and 7 deletions

View File

@@ -159,7 +159,10 @@ then
fi
# Switch to the correct directory.
[ -e "build.sh" ] && cd ..
while [ ! -e ".ci/build.sh" ]
do
cd ..
done
# Make source tarball if requested.
if [ ! -z "$tarball_name" ]
@@ -173,7 +176,7 @@ then
git log --stat -1 > VERSION || rm -f VERSION
# Archive source.
make_tar $tarball_name.tar
make_tar "$cwd/$tarball_name.tar"
status=$?
# Check if the archival succeeded.
@@ -397,7 +400,7 @@ cd archive_tmp
if is_windows
then
# Create zip.
"$sevenzip" a -y -mx9 "..\\$package_name.zip" *
"$sevenzip" a -y -mx9 "$(cygpath -w "$cwd")\\$package_name.zip" *
status=$?
elif is_mac
then
@@ -405,7 +408,7 @@ then
:
else
# Create binary tarball.
VERBOSE=1 make_tar ../$package_name.tar
VERBOSE=1 make_tar "$cwd/$package_name.tar"
status=$?
fi
cd ..

6
.gitignore vendored
View File

@@ -29,11 +29,11 @@ Makefile
# Build scripts
/archive_tmp
/static2dll.*
/*.zip
/*.tar
/*.tar.*
/VERSION
/target
*.zip
*.tar
*.tar.*
# Visual Studio Code
/.vs