tweak symlink generation so leading slashes are omitted

This commit is contained in:
Bryan 2015-10-15 17:03:55 -07:00
parent 2cf04d37ce
commit 9b4cc95312
5 changed files with 4 additions and 6 deletions

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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)

View file

@ -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", [])

View file

@ -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"
}
}