diff options
author | Tatsuya Kinoshita <tats@vega.ocn.ne.jp> | 2011-05-03 16:44:14 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@vega.ocn.ne.jp> | 2011-05-03 16:44:14 +0000 |
commit | 3ed51b364482af64749980ed7ce67812046b1713 (patch) | |
tree | a0cc68bf216c153e65f3b336b6b3b043132c42cb /debian/rules.mk | |
parent | Adding upstream version 0.1.10+0.1.11pre+kokb23 (diff) | |
download | w3m-3ed51b364482af64749980ed7ce67812046b1713.tar.gz w3m-3ed51b364482af64749980ed7ce67812046b1713.zip |
Releasing debian version 0.1.10+0.1.11pre+kokb23-4debian/0.1.10+0.1.11pre+kokb23-4
Diffstat (limited to '')
-rw-r--r-- | debian/rules.mk | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/debian/rules.mk b/debian/rules.mk new file mode 100644 index 0000000..12a6046 --- /dev/null +++ b/debian/rules.mk @@ -0,0 +1,42 @@ +# -*- Makefile -*- +# +buildtree=build-tree/ +sourcedir=w3m-0.1.11-pre +builddir=$(buildtree)/$(sourcedir) + +extract: extract-stamp +extract-stamp: + -rm -rf $(buildtree) + mkdir $(buildtree) + tar zxfC upstream/w3m-0.1.11-pre.tar.gz $(buildtree) + # gunzip < upstream/w3m-0.1.11-pre+.diff.gz | (cd $(builddir) && patch -p0) + gunzip < upstream/w3m-0.1.11-pre-kokb23.patch.gz | (cd $(builddir) && patch -p1) + touch extract-stamp + +patch: patch-stamp +patch-stamp: extract-stamp + for p in debian/patches/[0-9]*; \ + do \ + test -f $$p || continue; \ + patchopt=`sed -ne '1s/PATCH: \(.*\)/\1/p' $$p`; \ + echo "Patch: $$p ($$patchopt)"; \ + cat $$p | (cd $(builddir) && patch $$patchopt); \ + done + touch patch-stamp + + +buildjadir=$(buildtree)/$(sourcedir)-ja +buildendir=$(buildtree)/$(sourcedir)-en + +setup-ja: $(buildjadir)/setup-stamp +$(buildjadir)/setup-stamp: extract-stamp patch-stamp + -rm -rf $(buildjadir) + cp -a $(builddir) $(buildjadir) + touch $(buildjadir)/setup-stamp + +setup-en: $(buildendir)/setup-stamp +$(buildendir)/setup-stamp: extract-stamp patch-stamp + -rm -rf $(buildendir) + cp -a $(builddir) $(buildendir) + touch $(buildendir)/setup-stamp + |