Building distribution fixes and pcre version display

[skip-ci]
This commit is contained in:
William S Fulton 2022-01-08 19:22:49 +00:00
commit 0a400f5230
2 changed files with 8 additions and 7 deletions

View file

@ -42,18 +42,18 @@ if dirname.lower() != dirname:
sys.exit(3)
# If directory and tarball exist, remove it
print("Removing " + dirname)
if check_dir_exists(dirpath):
print("Removing " + dirpath)
run_command("rm", "-rf", dirpath)
print("Removing " + dirname + ".tar if exists")
filename = dirpath + ".tar"
if check_file_exists(filename):
print("Removing " + filename)
run_command("rm", "-rf", filename)
print("Removing " + dirname + ".tar.gz if exists")
filename += ".gz"
if check_file_exists(filename):
print("Removing " + filename)
run_command("rm", "-rf", filename)
# Grab the code from git
@ -89,10 +89,10 @@ if not skip_checks:
print("Tagging release")
tag = "v" + version
force = "-f " if force_tag else ""
force = "-f" if force_tag else ""
command = ["git", "tag", "-a", "-m", "'Release version " + version + "'"]
force and command.extend(force, tag)
not force and command.append(tag)
force and command.append(force)
command.append(tag)
run_command(*command) == 0 or failed()
outdir = dirname + "/"

View file

@ -115,8 +115,9 @@ if test -f "$tarball"; then
./configure $extraconfigureoptions --without-alllang
echo "Compiling (quietly)..."
make > build.log
echo "Simple check to see if swig.exe runs..."
echo "Simple check to see if swig.exe runs and show versions..."
env LD_LIBRARY_PATH= PATH= $wine ./swig.exe -version || exit 1
env LD_LIBRARY_PATH= PATH= $wine ./swig.exe -pcreversion || exit 1
echo "Simple check to see if ccache-swig.exe runs..."
env LD_LIBRARY_PATH= PATH= $wine ./CCache/ccache-swig.exe -V || exit 1
echo "Creating $swigwinbasename.zip..."