]> git.decadent.org.uk Git - dak.git/blob - setup/core-init.d/020_sections
Merge remote-tracking branch 'jcristau/cs-set-log-suite'
[dak.git] / setup / core-init.d / 020_sections
1 #!/bin/sh
2
3 echo "Creating default sections"
4
5 set -e
6 set -u
7
8 SECTIONS="admin
9 cli-mono
10 comm
11 database
12 debian-installer
13 debug
14 devel
15 doc
16 editors
17 education
18 electronics
19 embedded
20 fonts
21 games
22 gnome
23 gnu-r
24 gnustep
25 graphics
26 hamradio
27 haskell
28 httpd
29 interpreters
30 introspection
31 java
32 kde
33 kernel
34 libdevel
35 libs
36 lisp
37 localization
38 mail
39 math
40 metapackages
41 misc
42 net
43 news
44 ocaml
45 oldlibs
46 otherosfs
47 perl
48 php
49 python
50 ruby
51 science
52 shells
53 sound
54 tasks
55 tex
56 text
57 utils
58 vcs
59 video
60 web
61 x11
62 xfce
63 zope"
64
65 for prefix in "" "contrib/" "non-free/"; do
66     for section in ${SECTIONS}; do
67         psql -c "INSERT INTO section (section) VALUES ('$prefix$section')" >/dev/null
68     done
69 done