-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathpackage.sh
More file actions
executable file
·26 lines (25 loc) · 795 Bytes
/
package.sh
File metadata and controls
executable file
·26 lines (25 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
VERSION=0.3.8
LIBZIP_VERSION=0.11 # 0.9.3 (ok) - 0.10 (tbt) - 0.11 (not tested)
rm *.gem *.tar.bz2 2> /dev/null
rm -rf doc
for i in ext/*.[ch]
do
tr -d '\r' < $i > $i.x && mv $i.x $i
done
cp ext/*.[ch] ext/zipruby/
cp libzip-${LIBZIP_VERSION}/*.{c,h} ext/zipruby/
rdoc -w 4 -SHN -m README.txt README.txt zipruby.c LICENSE.libzip ChangeLog --title 'Zip/Ruby - Ruby bindings for libzip.'
mkdir work
cp -r *?[!work] work 2> /dev/null
cd work
tar jcf zipruby-${VERSION}.tar.bz2 --exclude=.git README.txt *.gemspec ext doc
gem build zipruby.gemspec
#gem build zipruby-mswin32.gemspec
#gem build zipruby1.8-mswin32.gemspec
#cp zipruby-${VERSION}-x86-mswin32.gem zipruby-${VERSION}-mswin32.gem
#rm -rf lib
#mv lib1.9 lib
#gem build zipruby1.9-mswin32.gemspec
cp *.gem *.tar.bz2 ..
cd ..