cp -f $SRCDIR/pkg-* $BIN_DIR/
cp -f $SRCDIR/build-* $BIN_DIR/
cp -rf $SRCDIR/src $BIN_DIR/
- cp -rf $SRCDIR/src $BIN_DIR/
cp -f $SRCDIR/upgrade $BIN_DIR/
cp -f $SRCDIR/AUTHORS $DOC_DIR/
cp -f $SRCDIR/LICENSE $DOC_DIR/
cp -f $SRCDIR/NOTICE $DOC_DIR/
cp -f $SRCDIR/doc/* $DOC_DIR/
+ echo $VERSION > $BIN_DIR/VERSION
}
cp -f $SRCDIR/pkg-* $BIN_DIR/
cp -f $SRCDIR/build-* $BIN_DIR/
cp -rf $SRCDIR/src $BIN_DIR/
- cp -rf $SRCDIR/src $BIN_DIR/
cp -f $SRCDIR/upgrade $BIN_DIR/
cp -f $SRCDIR/AUTHORS $DOC_DIR/
cp -f $SRCDIR/LICENSE $DOC_DIR/
cp -f $SRCDIR/NOTICE $DOC_DIR/
cp -f $SRCDIR/doc/* $DOC_DIR/
+ echo $VERSION > $BIN_DIR/VERSION
}
cp -f $SRCDIR/pkg-* $BIN_DIR/
cp -f $SRCDIR/build-* $BIN_DIR/
cp -rf $SRCDIR/src $BIN_DIR/
- cp -rf $SRCDIR/src $BIN_DIR/
cp -f $SRCDIR/upgrade $BIN_DIR/
cp -f $SRCDIR/AUTHORS $DOC_DIR/
cp -f $SRCDIR/LICENSE $DOC_DIR/
cp -f $SRCDIR/NOTICE $DOC_DIR/
cp -f $SRCDIR/doc/* $DOC_DIR/
+ echo $VERSION > $BIN_DIR/VERSION
}
Source : dibs
-Version :0.99.41
+Version :0.99.42
Maintainer : taejun ha<taejun.ha@samsung.com>, jiil hyoun <jiil.hyoun@samsung.com>, donghyuk yang <donghyouk.yang@samsung.com>, donghee yang <donghee.yang@samsung.com>, sungmin kim <dev.sungmin.kim@samsung.com
Package : dibs
end
opts.on( '-v', '--version', 'display version' ) do
- puts "DIBS(Distributed Intelligent Build System) version 1.2.0"
+ puts "DIBS(Distributed Intelligent Build System) version " + Utils.get_version()
exit
end
end
opts.on( '-v', '--version', 'display version' ) do
- puts "DIBS(Distributed Intelligent Build System) version 1.2.0"
+ puts "DIBS(Distributed Intelligent Build System) version " + Utils.get_version()
exit
end
end
@log.info( "Make build...", Log::LV_USER)
- if not execute_build_command("build", src_path, build_root_dir, os) then
+ if not execute_build_command("build", src_path, build_root_dir, os, pkginfo.get_version) then
return false
end
# execute install script
@log.info( "Make install...", Log::LV_USER)
- if not execute_build_command("install", src_path, build_root_dir, os) then
+ if not execute_build_command("install", src_path, build_root_dir, os, pkginfo.get_version) then
return false
end
# execute build command
- def execute_build_command( target, src_path, build_root_dir, os )
+ def execute_build_command( target, src_path, build_root_dir, os, version )
# get category
os_category = Utils.get_os_category( os )
TARGET_OS=#{os} \
TARGET_OS_CATEGORY=#{os_category} \
SRCDIR=\"#{src_path}\" \
- ROOTDIR=\"#{build_root_dir}\" "
+ ROOTDIR=\"#{build_root_dir}\" \
+ VERSION=\"#{version}\" "
# check script file
script_file = "#{src_path}/package/build.#{@host_os}"
end
# execute
- return execute_build_command("clean", src_path, build_root_dir, target_os )
+ return execute_build_command("clean", src_path, build_root_dir, target_os, pkginfo.get_version)
end
end
require 'optparse'
require 'logger'
+$LOAD_PATH.unshift File.dirname(File.dirname(__FILE__))+"/common"
+require "utils"
def parse()
end
opts.on('-v','--version', 'display version') do
- puts "DIBS(Distributed Intelligent Build System) version 1.2.0"
+ puts "DIBS(Distributed Intelligent Build System) version " + Utils.get_version()
exit
end
end
require 'optparse'
require 'logger'
+$LOAD_PATH.unshift File.dirname(File.dirname(__FILE__))+"/common"
+require "utils"
def parse()
end
opts.on('-v','--version', 'display version') do
- puts "DIBS(Distributed Intelligent Build System) version 1.2.0"
+ puts "DIBS(Distributed Intelligent Build System) version " + Utils.get_version()
exit
end
end
end
end
+ def Utils.get_version()
+ version_file = "#{File.dirname(__FILE__)}/../../VERSION"
+
+ if not File.exist? version_file then
+ return nil
+ end
+
+ f = File.open( version_file, "r" )
+ version = f.readline
+ f.close
+
+ return version
+ end
+
if defined?(HOST_OS).nil? then
HOST_OS = Utils.identify_current_OS()
end
end
opts.on( '-v', '--version', 'display version' ) do
- puts "DIBS(Distributed Intelligent Build System) version 1.2.0"
+ puts "DIBS(Distributed Intelligent Build System) version " + Utils.get_version()
exit
end
end
end
opts.on( '-v', '--version', 'display version' ) do
- puts "DIBS(Distributed Intelligent Build System) version 1.2.0"
+ puts "DIBS(Distributed Intelligent Build System) version " + Utils.get_version()
exit
end
end