tweak symlink generation so leading slashes are omitted
This commit is contained in:
parent
2cf04d37ce
commit
9b4cc95312
5 changed files with 4 additions and 6 deletions
|
@ -59,6 +59,6 @@ Note: remove all comments before using this
|
|||
},
|
||||
|
||||
"symlinks": { // (optional no defaults)
|
||||
"path_relative_to_package_root/test_exe.sh" : "/usr/bin/test_exe.sh"
|
||||
"path_relative_to_package_root/test_exe.sh" : "usr/bin/test_exe.sh"
|
||||
}
|
||||
}
|
|
@ -34,6 +34,6 @@
|
|||
},
|
||||
|
||||
"symlinks": { // (optional no defaults)
|
||||
"path_relative_to_package_root/test_exe.sh" : "/usr/bin/test_exe.sh"
|
||||
"path_relative_to_package_root/test_exe.sh" : "usr/bin/test_exe.sh"
|
||||
}
|
||||
}
|
|
@ -14,7 +14,7 @@ FILE_CONTROL = 'control'
|
|||
FILE_COPYRIGHT = 'copyright'
|
||||
FILE_SYMLINK_FORMAT = '{package_name}.links'
|
||||
|
||||
PACKAGE_ROOT_FORMAT = "/usr/share/{package_name}"
|
||||
PACKAGE_ROOT_FORMAT = "usr/share/{package_name}"
|
||||
CHANGELOG_DATE_FORMAT = "%a, %d %b %Y %H:%M:%S %z"
|
||||
|
||||
# UTC Timezone for Changelog date
|
||||
|
@ -206,7 +206,6 @@ def parse_and_validate_args():
|
|||
help_and_exit("Error: Invalid template directory path")
|
||||
|
||||
if not os.path.isdir(output_dir):
|
||||
print output_dir #TODO debug
|
||||
help_and_exit("Error: Invalid output directory path")
|
||||
|
||||
return (config_path, template_dir, output_dir)
|
||||
|
|
|
@ -105,7 +105,6 @@ def generate_synopsis_section(tool_name, tool_data):#
|
|||
roff_text_builder = []
|
||||
roff_text_builder.append(".SH SYNOPSIS")
|
||||
|
||||
#TODO: append ellipsis conditionally if argument_list_name is added
|
||||
synopsis_format = '.B {program_name} {command_name} \n.RI {options} " "\n.I "{argument_list_name}"'
|
||||
|
||||
tool_commands = tool_data.get("commands", [])
|
||||
|
|
|
@ -35,6 +35,6 @@
|
|||
},
|
||||
|
||||
"symlinks": {
|
||||
"path_relative_to_package_root/test_exe.sh" : "/usr/bin/test_exe.sh"
|
||||
"path_relative_to_package_root/test_exe.sh" : "usr/bin/test_exe.sh"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue