summaryrefslogtreecommitdiff
path: root/install.rb
diff options
context:
space:
mode:
authorFlorian Frank <flori@ping.de>2011-09-12 20:17:12 +0200
committerFlorian Frank <flori@ping.de>2011-09-13 00:48:21 +0200
commitf729d47aefc98623677142de62f6211feeacb116 (patch)
tree777a045e3ec72d9dffe335176e9d1eae3cf5aa48 /install.rb
parentee3268deb262ddccaa5763c256a86b5832fef377 (diff)
downloadjson-f729d47aefc98623677142de62f6211feeacb116.tar.gz
Extract utils out of this library into json-utilsv1.6.0
Diffstat (limited to 'install.rb')
-rwxr-xr-xinstall.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/install.rb b/install.rb
index adf77a0..62fce1a 100755
--- a/install.rb
+++ b/install.rb
@@ -6,21 +6,14 @@ include FileUtils::Verbose
include Config
-bindir = CONFIG["bindir"]
-cd 'bin' do
- filename = 'edit_json.rb'
- #install(filename, bindir)
-end
sitelibdir = CONFIG["sitelibdir"]
cd 'lib' do
install('json.rb', sitelibdir)
mkdir_p File.join(sitelibdir, 'json')
- for file in Dir['json/**/*.{rb,xpm}']
+ for file in Dir['json/**/*}']
d = File.join(sitelibdir, file)
mkdir_p File.dirname(d)
install(file, d)
end
- install(File.join('json', 'editor.rb'), File.join(sitelibdir,'json'))
- install(File.join('json', 'json.xpm'), File.join(sitelibdir,'json'))
end
warn " *** Installed PURE ruby library."