File generate_filelist.py of Package opengm
import os rootdir = "./srv" for subdir, dirs, files in os.walk(rootdir): for file in files: fname = os.path.join(subdir, file).replace("./", "") print(f"install -m 744 {fname} $RPM_BUILD_ROOT/{fname}")
import os rootdir = "./srv" for subdir, dirs, files in os.walk(rootdir): for file in files: fname = os.path.join(subdir, file).replace("./", "") print(f"install -m 744 {fname} $RPM_BUILD_ROOT/{fname}")