aboutsummaryrefslogtreecommitdiff
path: root/0.8.0/paludis/repositories/cran/cran_repository_TEST_setup.sh
blob: 93fdbee715bb8597763214f3b85470a164fa2d7e (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/sh
# vim: set ft=sh sw=4 sts=4 et :

mkdir cran_repository_TEST_dir || exit 1
cd cran_repository_TEST_dir || exit 1

# repo1
mkdir -p repo1
cat <<EOF >> repo1/PACKAGES
Package: testpackage1
Version: 2006.05.08
Title: Test on a well formed PACKAGES file
Depends: R (>= 2.0.0)


Package: testpackage2
Version: 2006.05.08
Title: Test on a well formed PACKAGES file
EOF
cat <<EOF >> repo1/testpackage1.DESCRIPTION
Package: testpackage1
Version: 2006.05.08
Title: Test on a well formed PACKAGES file
Depends: R (>= 2.0.0)
Description: This description
     spans
     multiple lines without
     trailing backslashes or leading tabs :-/
License: Some weirdo license string
Packaged: Mon May 08 12:00:00 2006; kugelfang
EOF
cat <<EOF >> repo1/testpackage2.DESCRIPTION
Package: testpackage2
Version: 1
Title: 2nd Test Packages
Depends: R, testpackage1
License: Another weirdo license string
Packaged: Mon May 08 22:00:00 2006; kugelfang
EOF

mkdir -p repo2
cat <<EOF >> repo2/PACKAGES
Package: testbundle
Version: 1
Title: Testbundle for bundlepkg1 and bundlepkg2
Bundle: testbundle
Contains: bundlepkg1 bundlepkg2
EOF
cat <<EOF >> repo2/testbundle.DESCRIPTION
Bundle: testbundle
Version: 1
Date: 21 May 2006
Title: Testbundle for bundlepkg1 and bundlepkg2
Contains: bundlepkg1 bundlepkg2
License: Weird obfuscation of GPL
Packaged: Sun May 21 12:34:56 2006; kugelfang
EOF