Skip to content
Snippets Groups Projects
Commit 27b25ab4 authored by Bill Lorensen's avatar Bill Lorensen
Browse files

ENH: Successfully created tarballs

parent 9f12bde0
No related branches found
No related tags found
No related merge requests found
......@@ -278,9 +278,9 @@ tmpDir = tempfile.mkdtemp(prefix="VTKTarballs") + "/"
# Create the Tarballs directory in the source tree if not present
# If it does not exist, assume the tarball repo has not been cloned
# and we need to ignore tar files
if not os.path.exists("Tarballs"):
os.makedirs("Tarballs")
ignoreFile = open("Tarballs/.gitignore", 'w')
if not os.path.exists("src/Tarballs"):
os.makedirs("src/Tarballs")
ignoreFile = open("src/Tarballs/.gitignore", 'w')
ignoreFile.write("*,tar\n")
ignoreFile.close()
......@@ -325,10 +325,10 @@ for example in exampleToFileNames:
# Now create the tar file for the example
# The tarballs are stored in the source tree
tar = tarfile.open("Tarballs/" + example + ".tar", "w")
tar = tarfile.open("src/Tarballs/" + example + ".tar", "w")
tar.add(srcDir,arcname=example)
tar.close()
os.utime(tmpDir,(0,refMtime))
# Cleanup the temporary directories
#shutil.rmtree(tmpDir)
shutil.rmtree(tmpDir)
......@@ -14,9 +14,6 @@ target_link_libraries(XXX ${VTK_LIBRARIES})
###Download and Build XXX
!!! danger
The generation of tar files has not been ported to the new VTKExamples. Some tarballs may be missing or out-of-date.
Click [here to download XXX](https://github.com/lorensen/VTKWikiExamplesTarballs/raw/master/XXX.tar) and its *CMakeLists.txt* file.
Once the *tarball XXX.tar* has been downloaded and extracted,
```
......
......@@ -57,10 +57,10 @@ git rm `git status | grep deleted: | cut -d":" -f2,2`
git commit -m "SYNC: Files deleted (or moved) from wiki."
echo "6) Update tarballs and push to tarball repo"
if ( test -d Tarballs ); then
(cd Tarballs; git add *tar)
(cd Tarballs; git commit -m "SYNC: Tarballs modified")
(cd Tarballs; git push)
if ( test -d src/Tarballs ); then
(cd src/Tarballs; git add *tar)
(cd src/Tarballs; git commit -m "SYNC: Tarballs modified")
(cd src/Tarballs; git push)
fi
echo "7) Push the changes"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment