Skip to content

Commit

Permalink
renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuchome committed Apr 6, 2012
1 parent 4195e6f commit 9f7adb8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#--
# YaST++ Kerberos Client Library
# Gloves Windowmanager Library
#
# Copyright (C) 2011 Novell, Inc.
# This library is free software; you can redistribute it and/or modify
Expand All @@ -24,14 +24,14 @@ desc "install all things on system"
task :install, :prefix, :ruby_path do |t,args|
args.with_defaults :prefix => '/',:ruby_path => Dir["/usr/lib*/ruby/vendor_ruby/1.*"][0]
sh "mkdir -p #{args[:prefix]}#{args[:ruby_path]}/"
sh "cd #{args[:prefix]}#{args[:ruby_path]}/; mkdir -p y_lib; cd -"
sh "cp lib/y_lib/* #{args[:prefix]}#{args[:ruby_path]}/y_lib"
sh "cd #{args[:prefix]}#{args[:ruby_path]}/; mkdir -p glove; cd -"
sh "cp lib/glove/* #{args[:prefix]}#{args[:ruby_path]}/glove"
end

Packaging::Configuration.run do |conf|
conf.obs_project = "YaST:Head:YaST++"
conf.obs_target = "devel_languages_ruby_extensions_openSUSE_Factory"
conf.package_name = "yast++lib-windowmanager"
conf.package_name = "gloves-windowmanager"
end

Rake::TestTask.new do |t|
Expand All @@ -40,7 +40,7 @@ Rake::TestTask.new do |t|
end

task :generate_spec do
sh "sed 's/VERSION_TEMPLATE/#{Packaging::Configuration.instance.version}/g' yast++lib-windowmanager.spec.template > package/yast++lib-windowmanager.spec"
sh "sed 's/VERSION_TEMPLATE/#{Packaging::Configuration.instance.version}/g' gloves-windowmanager.spec.template > package/gloves-windowmanager.spec"
end

#add generation of spec file as dependency for package task
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
#--
# YaST++ Language Library
# Gloves Windowmanager Library
#
# Copyright (C) 2011 Novell, Inc.
# This library is free software; you can redistribute it and/or modify
Expand All @@ -18,21 +18,21 @@
#++

$LOAD_PATH.unshift File.join(File.dirname(__FILE__),"..","lib")
require "y_lib/windowmanager"
require "glove/windowmanager"
require "dbus_clients/backend_exception"
begin
args = {}
args = { "windowmanager" => 1 } if ARGV[0] == "windowmanager"

if ARGV.empty? || ARGV[0] == "windowmanager"
windowmanager = YLib::Windowmanager::read(args)
windowmanager = Glove::Windowmanager::read(args)
puts windowmanager.inspect unless windowmanager.nil?
if windowmanager.nil?
error = YLib::Windowmanager::last_error
error = Glove::Windowmanager::last_error
puts "returned error: #{error}" if error
end
else
puts YLib::Windowmanager::modify({}, {"windowmanager"=>ARGV[0]})
puts Glove::Windowmanager::modify({}, {"windowmanager"=>ARGV[0]})
end
rescue DbusClients::BackendException => e
puts e.backend_backtrace
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#--
# YaST++ Keyboard Library
# Gloves Windowmanager Library
#
# Copyright (C) 2011 Novell, Inc.
# This library is free software; you can redistribute it and/or modify
Expand All @@ -21,7 +21,7 @@
require 'config_agent/windowmanager'

# module for windowmanager configuration
module YLib
module Glove
module Windowmanager

def self.last_error
Expand Down
1 change: 0 additions & 1 deletion yast++lib-windowmanager/lib/.gitignore

This file was deleted.

0 comments on commit 9f7adb8

Please sign in to comment.