def run(self): for po_file in Utils.find_files_of_type('po', '*.po'): lang = os.path.basename(po_file)[:-3] dest_path = os.path.join(self.build_base, 'locale', lang, 'LC_MESSAGES') dest = os.path.join(dest_path, 'rhsm.mo') Utils.run_if_new(po_file, dest, self.compile) for desktop_file in Utils.find_files_of_type('etc-conf', '*.desktop.in'): output_file = os.path.basename("%s" % os.path.splitext(desktop_file)[0]) dest_path = os.path.join(self.build_base, 'applications') if output_file == 'rhsm-icon.desktop': dest_path = os.path.join(self.build_base, 'autostart') dest = os.path.join(dest_path, output_file) Utils.run_if_new(desktop_file, dest, self.merge_desktop)
def run(self): for po_file in Utils.find_files_of_type("po", "*.po"): lang = os.path.basename(po_file)[:-3] dest_path = os.path.join(self.build_base, "locale", lang, "LC_MESSAGES") dest = os.path.join(dest_path, self.app_name + ".mo") Utils.run_if_new(po_file, dest, self.compile) for desktop_file in Utils.find_files_of_type("etc-conf", "*.desktop.in"): output_file = os.path.basename("%s" % os.path.splitext(desktop_file)[0]) dest_path = os.path.join(self.build_base, "applications") dest = os.path.join(dest_path, output_file) Utils.run_if_new(desktop_file, dest, self.merge_desktop)
def run(self): for template in Utils.find_files_of_type('etc-conf', '*.template'): dest_rel_path = os.path.relpath( "%s" % os.path.splitext(template)[0], 'etc-conf') dest = os.path.join(self.build_base, dest_rel_path) Utils.run_if_new(template, dest, self.template)
def run(self): for template in Utils.find_files_of_type('etc-conf', '*.template'): dest_rel_path = os.path.relpath("%s" % os.path.splitext(template)[0], 'etc-conf') dest = os.path.join(self.build_base, dest_rel_path) Utils.run_if_new(template, dest, self.template)