writeCommand('cd '+modFolder+"/build-cmake",'--Error: could not enter build directory at '+modFolder+'/build-cmake')
writeCommand('make build_tests','--Error: applications could not be compiled. Please try to compile them manually.')
print("\n-- Successfully created install script file "+instFileName)
iflen(patches)>0:
print("-> It is recommended that you now commit and publish the 'patches' folder and this install script in your module such that others can use it.")
print(" IMPORTANT: After you committed the patches, you have to adjust the line of the install script in which your module is checked out to a specific commit.")
print(" That is, in the line 'git reset --hard COMMIT_SHA' for your module, replace COMMIT_SHA by the commit in which you added the patches.")
print(" If patches had to be created for your own module, please think about comitting and pushing your local changes and rerunning this script again.")
ifmodNameindepNames:# print gudience to installation if the module is not skipped
print("\n-- You might want to put installation instructions into the README.md file of your module, for instance:\n")
print(" ## Installation\n")
print(" The easiest way of installation is to use the script `"+instFileName+"` provided in this repository.")
print(" Using `wget`, you can simply install all dependent modules by typing:\n")
iftopFolderName:print(" This will create a sub-folder `"+topFolderName+"`, clone all modules into it, configure the entire project and build the applications contained in this module.")
else:print(" This will clone all modules into the folder from which the script is called, configure the entire project and build the applications contained in this module.")