~ubuntu-branches/ubuntu/precise/llvm-2.8/precise

« back to all changes in this revision

Viewing changes to debian/rules.d/unpack.mk

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-09-07 17:51:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100907175117-a0kgmxnvkdq5mw3l
Tags: 2.8~20100907-0ubuntu1
* New upstream snapshot, taken from the 2.8 branch.
* Provide a symlink /usr/lib/llvm-2.8svn -> llvm-2.8.
* Merge build fixes from clang and llvm-gcc-4.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
            *.bz2) tar -x --bzip2 -f $(tarpath);; \
13
13
            *.gz)  tar -x --gzip  -f $(tarpath);; \
14
14
            *.lzma) lzcat $(tarpath) | tar -x -f -;; \
 
15
            *.xz) xcat $(tarpath) | tar -x -f -;; \
15
16
            *)     false;; \
16
17
          esac ; \
17
18
        fi
26
27
$(patch-stamp): $(unpack-stamp)
27
28
        test -d $(stampdir)/patches || mkdir -p $(stampdir)/patches
28
29
        cd $(srcdir) && for patch in $(patches) ; do \
 
30
          test -f "$$patch" || continue; \
29
31
          if ! test -f $(stampdir)/patches/$$(echo $$patch | tr "/" "_") ; \
30
32
            then echo "Applying patch: $$patch" && patch -p1 < $$patch ; \
31
33
              test $$? = 0 || exit 1 ; \
39
41
        test -d $(stampdir)/patches || mkdir -p $(stampdir)/patches
40
42
        test -z "$(tarball)" || (test -d $(srcdir) || mkdir $(srcdir))
41
43
        cd $(srcdir) && for patch in $(patches_rev) ; do \
 
44
          test -f "$$patch" || continue; \
42
45
          if test -f $(stampdir)/patches/$$(echo $$patch | tr "/" "_") ; \
43
46
            then echo "Reverting patch: $$patch" && patch -p1 -R < $$patch ; \
44
47
              test $$? = 0 || exit 1 ; \