parameters: (os_name)
docstring: Generate the build package script running in docker container
docstring_summary: Generate the build package script running in docker container
docstring_tokens: Generate the build package script running in docker container
function: def command_build_package_ubuntu(os_name):
      """
      Generate the build package script running in docker container
      """
      cmd_dir = os.path.join(working_dir, 'command')
      install_dir = '/tmp/ossfs_install'
      f = open(os.path.join(cmd_dir, 'build_package_%s.sh'%os_name), 'w')
      f.write('#!/bin/bash\n')
      command_build_package(f, install_dir)
      f.write('fpm -s dir -t deb -n ossfs -v %s -C %s -p ossfs_VERSION_%s_ARCH.deb -d "fuse >= 2.8.4" -d "libcurl3-gnutls >= 7.0" -d "libxml2 >= 2.6" -d "libssl-dev >= 0.9"\n' % (ossfs_version, install_dir, os_name))
      f.close()
function_tokens: def command_build_package_ubuntu ( os_name ) : cmd_dir = os . path . join ( working_dir , 'command' ) install_dir = '/tmp/ossfs_install' f = open ( os . path . join ( cmd_dir , 'build_package_%s.sh' % os_name ) , 'w' ) f . write ( '#!/bin/bash\n' ) command_build_package ( f , install_dir ) f . write ( 'fpm -s dir -t deb -n ossfs -v %s -C %s -p ossfs_VERSION_%s_ARCH.deb -d "fuse >= 2.8.4" -d "libcurl3-gnutls >= 7.0" -d "libxml2 >= 2.6" -d "libssl-dev >= 0.9"\n' % ( ossfs_version , install_dir , os_name ) ) f . close ( )