~ubuntu-branches/debian/jessie/fortunes-it/jessie

« back to all changes in this revision

Viewing changes to testi/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Emanuele Rocca
  • Date: 2004-12-14 00:34:29 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20041214003429-5psam3x754ue91t9
Tags: 1.99-1

* Believe it or not, new upstream release! :)
  Thanks to Andrea 'Zuse' Balestrero for his great work
* debian/rules rewritten to support multiple fortunes files; debhelper
  compatibility level set to 4
* fortunes-it-off: README.Debian.offensive renamed in README.Debian
* Updated debian/copyright
* Updated Standards Version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
COOKIES=adams banner computer definizioni formiche italia itatrek jackfr leggi luke \
 
3
        luttazzi norm paolotedeschi zuse
 
4
 
 
5
OCOOKIES=computer-o definizioni-o film-o italia-o jackfr-o leggi-o luttazzi-o obsc-o zuse-o
 
6
 
 
7
STRFILE=`which strfile`
 
8
 
 
9
.PHONY: clean normal offensive
 
10
 
 
11
clean:
 
12
        rm -f *.dat *.u8 *-stamp
 
13
        for i in $(COOKIES) $(OCOOKIES) ; do \
 
14
                if [ -f $$i.old ]; then \
 
15
                        mv -f $$i.old $$i; \
 
16
                fi; \
 
17
        done
 
18
 
 
19
normal-stamp: 
 
20
        for i in $(COOKIES) ; \
 
21
            do \
 
22
                if [ ! -f $$i.old ] ; then \
 
23
                        cp $$i $$i.old; \
 
24
                fi; \
 
25
                recode latin1..u8 $$i ; \
 
26
                $(STRFILE) $$i ; \
 
27
                ln -s $$i $$i.u8 || exit $? ; \
 
28
            done
 
29
        touch normal-stamp
 
30
 
 
31
offensive-stamp: 
 
32
        for i in $(OCOOKIES) ; \
 
33
            do \
 
34
                if [ ! -f $$i.old ] ; then \
 
35
                        cp $$i $$i.old; \
 
36
                fi; \
 
37
                recode latin1..u8 $$i ; \
 
38
                $(STRFILE) $$i ; \
 
39
                ln -s $$i $$i.u8 || exit $? ; \
 
40
            done
 
41
        touch offensive-stamp
 
42
 
 
43
normal: normal-stamp
 
44
        install -m 0755 -d $(COOKIEDIR)
 
45
        for i in $(COOKIES) ; do \
 
46
                install -m 0644 $$i $$i.dat $(COOKIEDIR) || exit $? ; \
 
47
                cp -d $$i.u8 $(COOKIEDIR) ; \
 
48
        done
 
49
 
 
50
        
 
51
offensive: offensive-stamp
 
52
        install -m 0755 -d $(OCOOKIEDIR)
 
53
        for i in $(OCOOKIES) ; do \
 
54
                install -m 0644 $$i $$i.dat $(OCOOKIEDIR) || exit $? ; \
 
55
                cp -d $$i.u8 $(OCOOKIEDIR) ; \
 
56
        done