Debian Codegraph @

debian/scripts/generate-doc-dir-to-symlink-migration

raw
1 #!/bin/sh
2
3 # This script generates the debhelper files to facilitate the
4 # transition from doc dirs to symlinks
5
6 # all binary packages except bacula-common
7 # bacula-sd now also removes "dvd-handler" so is handled manually
8 PACKAGES="bacula-common-mysql bacula-common-pgsql bacula-common-sqlite3 bacula-console bacula-console-qt bacula-fd"
9
10
11 for pkg in $PACKAGES; do
12 case $1 in
13 create)
14 if [ -f debian/$pkg.maintscript ]; then
15 echo "$0: error: debian/$pkg.maintscript already exists!"
16 exit 1
17 fi
18 echo dir_to_symlink /usr/share/doc/$pkg bacula-common 7.0.5+dfsg-4~ > debian/$pkg.maintscript
19 ;;
20 clean)
21 rm -f debian/$pkg.maintscript
22 ;;
23 *)
24 echo '$0: error: argument "create" or "clean" is missing'
25 exit 1
26 ;;
27 esac
28 done