]> git.decadent.org.uk Git - dak.git/blob - setup/core-init.d/020_sections
Add some core table setup
[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 electronics
18 embedded
19 fonts
20 games
21 gnome
22 gnu-r
23 gnustep
24 graphics
25 hamradio
26 haskell
27 httpd
28 interpreters
29 java
30 kde
31 kernel
32 libdevel
33 libs
34 lisp
35 localization
36 mail
37 math
38 misc
39 net
40 news
41 ocaml
42 oldlibs
43 otherosfs
44 perl
45 php
46 python
47 ruby
48 science
49 shells
50 sound
51 tasks
52 tex
53 text
54 utils
55 vcs
56 video
57 web
58 x11
59 xfce
60 zope"
61
62 for prefix in "" "contrib/" "non-free/"; do
63     for section in ${SECTIONS}; do
64         psql -c "INSERT INTO section (section) VALUES ('$prefix$section')" >/dev/null
65     done
66 done