Hiroyuki Komatsu
komat****@users*****
2005年 1月 30日 (日) 03:36:35 JST
Index: prime-dict/configure.in diff -u prime-dict/configure.in:1.18 prime-dict/configure.in:1.19 --- prime-dict/configure.in:1.18 Sat Jan 29 21:36:49 2005 +++ prime-dict/configure.in Sun Jan 30 03:36:34 2005 @@ -1,5 +1,5 @@ dnl configure.in: Creates a configure script for prime-dict of PRIME. -dnl $Id: configure.in,v 1.18 2005/01/29 12:36:49 komatsu Exp $ +dnl $Id: configure.in,v 1.19 2005/01/29 18:36:34 komatsu Exp $ dnl dnl Copyright (C) 2003 Hiroyuki Komatsu <komat****@taiya*****> dnl All rights reserved. @@ -39,5 +39,6 @@ AC_CONFIG_FILES([Makefile src/Makefile dict/Makefile contrib/Makefile lib/Makefile lib/prime-dict-config.rb prime-dict.spec packaging/Debian/debian/Makefile - packaging/Debian/Makefile packaging/Makefile]) + packaging/Cygwin/Makefile packaging/Debian/Makefile + packaging/Makefile]) AC_OUTPUT Index: prime-dict/Makefile.am diff -u prime-dict/Makefile.am:1.7 prime-dict/Makefile.am:1.8 --- prime-dict/Makefile.am:1.7 Sat Jan 29 21:36:49 2005 +++ prime-dict/Makefile.am Sun Jan 30 03:36:34 2005 @@ -1,5 +1,5 @@ # Makefile.am: Template of Automake for prime-dict. -# $Id: Makefile.am,v 1.7 2005/01/29 12:36:49 komatsu Exp $ +# $Id: Makefile.am,v 1.8 2005/01/29 18:36:34 komatsu Exp $ # # Copyright (C) 2003 Hiroyuki Komatsu <komat****@taiya*****> # All rights reserved. @@ -21,10 +21,27 @@ dch -v "$(VERSION)-0.local.1" 'Local build.' fakeroot make -f debian/rules binary -cygwin: - rm -rf cygwin/ - ./configure --prefix `pwd`/cygwin/usr/local \ - --with-rubydir=`pwd`/cygwin/usr/lib/ruby/site_ruby/1.8 +cygwin: cygwin-dist + +cygwin-dist: + rm -rf packaging/Cygwin/dist + ./configure --prefix `pwd`/packaging/Cygwin/dist/usr/local \ + --with-rubydir=`pwd`/packaging/Cygwin/dist/usr/lib/ruby/site_ruby/1.8 make install - cd cygwin ; tar cjf $(PACKAGE)-$(VERSION).tar.bz2 usr ; rm -rf usr + cd packaging/Cygwin/dist ; \ + tar cjf ../$(PACKAGE)-$(VERSION).tar.bz2 usr ; rm -rf usr + cd packaging/Cygwin ; ruby -e " \ + packages = ['']; \ + packages.each { | suffix | \ + package_name = '$(PACKAGE)' + suffix; \ + archive_name = package_name + '-$(VERSION).tar.bz2'; \ + md5_string = \`md5sum #{archive_name}\`.split().first(); \ + size_string = \`ls -l #{archive_name}\`.split()[4]; \ + File::open(package_name + '.ini', 'w') {|io| \ + File::open(package_name + '.ini.src', 'r').each {|line| \ + line.sub!('%PACKAGE_VERSION%', '$(PACKAGE_VERSION)'); \ + line.sub!('%PACKAGE_MD5%', md5_string); \ + line.sub!('%PACKAGE_SIZE%', size_string); \ + io.print(line); \ + }}} " ./configure