heumm ok. after made make && make install in reb and in rebsqlite.
How I can use reb?
Sorry but I don't see whow can it's work.
Quoting Philippe Caseiro <[EMAIL PROTECTED]>:
Le Fri, 15 Jun 2007 20:02:09 +0200,
sysde <[EMAIL PROTECTED]> a _crit :
Puppet:
I would like to use reb without given all librairies I have needed.
How can do that? with gem?
I don't understand whow works gem.
It explain it in the commit log : use the ruby "-I" option or juste
type "make" and "make install" on the reb directory
-------- Original Message --------
Subject: [Else-Commits] Philippe Caseiro - Some updates to create the
reb gem :
Date: Tue, 5 Jun 2007 19:40:34 +0200
From: The Stupid User <[EMAIL PROTECTED]>
To: Else Commits Mailing-list <[EMAIL PROTECTED]>
Update in /var/git/else/pfe.git/refs/heads/eugenie
http://git.else-projects.org/?p=else/pfe.git;a=summary
http://git.else-projects.org/?p=else/pfe.git;a=commit;h=0e29c6076666ef91d59e6ac8e6919814b70a475f
Commit: 0e29c6076666ef91d59e6ac8e6919814b70a475f
Author: Philippe Caseiro <[EMAIL PROTECTED]>
Date: Tue Jun 5 19:34:06 2007 +0200
Some updates to create the reb gem :
Adding rimelse/reb/Makefile
Adding rimelse/reb/reb.gemspec
Removing rimelse/reb/TODO (not needed with the ".todo"
Updating rimelse/reb/bin/reb.rb
rimelse/reb/lib/Install.rb with correct includes
now to use reb please use the "ruby -I" option like this !
ruby -I lib -I ../rebsqlite/lib bin/reb.rb install devtodo
---
rimelse/reb/Makefile | 79
++++++++++++++++++++++++++++++++++++++++++++
rimelse/reb/TODO | 12 -------
rimelse/reb/bin/reb.rb | 8 ++--
rimelse/reb/lib/Install.rb | 4 +-
rimelse/reb/reb.gemspec | 18 ++++++++++
5 files changed, 103 insertions(+), 18 deletions(-)
create mode 100644 rimelse/reb/Makefile
delete mode 100644 rimelse/reb/TODO
create mode 100644 rimelse/reb/reb.gemspec
diff --git a/rimelse/reb/Makefile b/rimelse/reb/Makefile
new file mode 100644
index 0000000..9dc45ad
--- /dev/null
+++ b/rimelse/reb/Makefile
@@ -0,0 +1,79 @@
+#
+# File: rimelse/reb/Makefile
+# Description:
+# Projet: RimElse/reb
+#
+# Copyright (c) 2006-2007 Else Team
+#
+# Author: Bertrand Jacquin
+#
+# Comments :
+# Ajusted for reb by Puppet_Master
+
+GIT_DIR := $(shell sh -c 'git-rev-parse --git-dir')
+
+NAME = reb
+
+SRC = reb.gemspec
+
+GEMPRG = gem
+
+TODOPRG = devtodo
+TODOOPT = --all --TODO
+
+RDOCPRG = rdoc
+RDOCOPT = \
+ --all --diagram \
+ --webcvs
'http://git.else-projects.org/?p=else/pfe.git;a=blob;f=rimelse/reb/'
\
+ --inline-source --line-numbers \
+ --charset UTF-8
+
+XSLTPRG = xsltproc
+
+RMPRG = rm
+RMOPT = --force
+
+all: gem
+
+gem:
+ $(GEMPRG) build $(SRC)
+
+install:
+ $(GEMPRG) install $(NAME)*.gem
+
+local_install:
+ $(GEMPRG) install $(NAME)*.gem -i ${HOME} -l
+
+uninstall:
+ $(GEMPRG) uninstall $(NAME)
+
+todo:
+ $(TODOPRG) $(TODOOPT)
+
+todo-html:
+ $(XSLTPRG) ../../style/xslt/todo2xhtml_css.xslt .todo >
TODO.html +
+doc:
+ $(RDOCPRG) $(RDOCOPT)
+
+clean:
+ $(RMPRG) $(RMOPT) $(NAME)*.gem
+ $(RMPRG) $(RMOPT) TODO
+ $(RMPRG) $(RMOPT) doc
+ $(RMPRG) $(RMOPT) ChangeLog
+
+clean-doc:
+ $(RMPRG) $(RMOPT) --recursive doc
+
+clean-todo:
+ $(RMPRG) $(RMOPT) TODO
+ $(RMPRG) $(RMOPT) TODO.html
+
+clean-all: clean clean-doc clean-todo
+
+fclean: clean-all
+
+ChangeLog:
+ git-log . > ChangeLog
+
+.PHONY: ChangeLog doc
diff --git a/rimelse/reb/TODO b/rimelse/reb/TODO
deleted file mode 100644
index 1b83004..0000000
--- a/rimelse/reb/TODO
+++ /dev/null
@@ -1,12 +0,0 @@
-- Option management for reb main calling program
- (added Sat Jan 27 10:43:23 2007, incomplete, priority high)
-
-- Option management for install
- (added Sat Jan 27 10:43:49 2007, incomplete, priority high)
-
-- Option management for delete
- (added Sat Jan 27 10:43:56 2007, incomplete, priority high)
-
-- Option management for upgrade
- (added Sat Jan 27 10:44:03 2007, incomplete, priority high)
-
diff --git a/rimelse/reb/bin/reb.rb b/rimelse/reb/bin/reb.rb
index b6a6700..1604b95 100755
--- a/rimelse/reb/bin/reb.rb
+++ b/rimelse/reb/bin/reb.rb
@@ -14,10 +14,10 @@
require 'syslog'
#temporary path
-require '../lib/Install'
-require '../lib/Delete'
-require '../lib/Upgrade'
-require '../lib/Downgrade'
+require 'Install'
+require 'Delete'
+require 'Upgrade'
+require 'Downgrade'
#get the first param
master_opt = ARGV[0]
diff --git a/rimelse/reb/lib/Install.rb b/rimelse/reb/lib/Install.rb
index 8fa7f38..ea03e0b 100644
--- a/rimelse/reb/lib/Install.rb
+++ b/rimelse/reb/lib/Install.rb
@@ -109,7 +109,7 @@ require 'syslog'
=end
private
def get_params()
- require '../lib/opthash'
+ require 'opthash'
optArray =
[
[ "--force", "-f",
@@ -188,7 +188,7 @@ require 'syslog'
def is_in_database(package , database)
#tmp path
- require '../../rebsqlite/lib/rebsqlite.rb'
+ require 'rebsqlite.rb'
puts database
db_cursor = Connectors.new(database)
if (db_cursor.databaseExists())
diff --git a/rimelse/reb/reb.gemspec b/rimelse/reb/reb.gemspec
new file mode 100644
index 0000000..fd1d5de
--- /dev/null
+++ b/rimelse/reb/reb.gemspec
@@ -0,0 +1,18 @@
+Gem::Specification.new do |s|
+ s.name = "reb"
+ s.summary = "This package provide the Else packages
manipulator"
+ s.version = "0.0.1.1"
+
+ s.author = "Eric \"SysDe\" Pincon"
+ s.email = "[email protected]"
+ s.homepage = "http://www.else-projects.org"
+
+ s.bindir = "bin"
+ s.files = [ "lib/Install.rb",
"lib/Delete.rb", "lib/Downgrade.rb", "lib/opthash.rb",
"lib/Upgrade.rb" ]
+ s.executables << 'reb.rb'
+
+ s.has_rdoc = true
+ s.required_ruby_version = '>= 1.8.0'
+
+ s.add_dependency('rebsqlite', '>= 0.0.1')
+end
Reports bugs or strange things to [EMAIL PROTECTED]
--
[EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
Archives: http://lists.else-projects.org/archives/commits
Jabber-MUC: [EMAIL PROTECTED]
--
[email protected]
Unsubscribe: [EMAIL PROTECTED]
Archives: http://lists.else-projects.org/archives/devel
Jabber-MUC: [EMAIL PROTECTED]
--
Philippe Caseiro
--
[email protected]
Unsubscribe: [EMAIL PROTECTED]
Archives: http://lists.else-projects.org/archives/devel
Jabber-MUC: [EMAIL PROTECTED]
--
[email protected]
Unsubscribe: [EMAIL PROTECTED]
Archives: http://lists.else-projects.org/archives/devel
Jabber-MUC: [EMAIL PROTECTED]