Ejemplo n.º 1
0
fileptr2.close()

############################################################
# Main build procedure
############################################################

if len(sys.argv) == 1:
    print 'Please specify build options!'
    print __doc__
    sys.exit(0)

if len(sys.argv) > 1:

    if sys.argv[1] == 'bdist_rpm':
        CLEAR_BUILD = True
        rpm_depends = dependencies.get_uc2_rpm_depend()

    if sys.argv[1] == 'build_update':
        UPDATE_MODULES = True
        CLEAR_BUILD = True
        sys.argv[1] = 'build'

    if sys.argv[1] == 'bdist_deb':
        DEB_PACKAGE = True
        CLEAR_BUILD = True
        sys.argv[1] = 'build'
        deb_depends = dependencies.get_uc2_deb_depend()

    if sys.argv[1] == 'uninstall':
        if os.path.isdir(install_path):
            # removing sk1 folder
Ejemplo n.º 2
0
fileptr2.close()

############################################################
# Main build procedure
############################################################

if len(sys.argv) == 1:
	print 'Please specify build options!'
	print __doc__
	sys.exit(0)

if len(sys.argv) > 1:

	if sys.argv[1] == 'bdist_rpm':
		CLEAR_BUILD = True
		rpm_depends = dependencies.get_uc2_rpm_depend()

	if sys.argv[1] == 'build_update':
		UPDATE_MODULES = True
		CLEAR_BUILD = True
		sys.argv[1] = 'build'

	if sys.argv[1] == 'bdist_deb':
		DEB_PACKAGE = True
		CLEAR_BUILD = True
		sys.argv[1] = 'build'
		deb_depends = dependencies.get_uc2_deb_depend()

	if sys.argv[1] == 'uninstall':
		if os.path.isdir(install_path):
			# removing sk1 folder