Skip to content

Commit

Permalink
(Tutorial) Keep original CMakeLists.txt for solution of first tutorial.
Browse files Browse the repository at this point in the history
  • Loading branch information
kdesnos committed Oct 29, 2024
1 parent 5d15f65 commit 18474c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/prepare_archives.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,15 @@ def zipFilesInDir(dirName, zipObj, regex, parentName="", withSubdirectories = Tr
mainFolder = "gegelati-tutorial/"
tutorialSolutionArchive = ZipFile("./docs/data/gegelati-tutorial-solution.zip", "w")
zipFileAdd(tutorialSolutionArchive,"bin/", mainFolder)
zipFilesInDir("./",tutorialSolutionArchive, r'[^\.]+.*', mainFolder, False) # exclude .gitgnore
zipFilesInDir("./",tutorialSolutionArchive, r'^(?!.*(CMakeLists))[^\.]+.*', mainFolder, False) # exclude .gitgnore and CMakeLists files
zipFilesInDir("./dat/",tutorialSolutionArchive, r'.*', mainFolder)
zipFilesInDir("./lib/",tutorialSolutionArchive, r'.*', mainFolder)
zipFilesInDir("src/",tutorialSolutionArchive, r'.*', mainFolder, False)
zipFilesInDir("src/manual/",tutorialSolutionArchive, r'.*', mainFolder)
zipFilesInDir("src/training",tutorialSolutionArchive, r'^(?!.*(pendulum_wrapper))', mainFolder, False) # all files except pendulum_wrapper
tutorialSolutionArchive.write("src/training/pendulum_wrapper_solution.cpp", mainFolder + "src/training/pendulum_wrapper.cpp" ) # overwrite empty_file
tutorialSolutionArchive.write("src/training/pendulum_wrapper_solution.h", mainFolder + "src/training/pendulum_wrapper.h") # overwrite empty_file
tutorialSolutionArchive.write("CMakeLists_empty.txt", mainFolder + "CMakeLists.txt") # overwrite empty_file
tutorialSolutionArchive.close()

# Make the main-inference.cpp file available
Expand Down

0 comments on commit 18474c4

Please sign in to comment.