258a3505877f00aa8a623c13e2b60392a4543b60
[projects.git] / tools / make / create-conffiles
1 #!/bin/bash
2 set -e
3
4 if [ $# -ne 1 ]; then
5         echo "usage: create-conffiles BASE_DIR"
6         exit 1
7 fi
8
9 cd $1
10 if [ -d etc ]
11 then
12         mkdir -p DEBIAN
13         for files in $(find etc -type f); do
14                 echo "/$files" >> DEBIAN/conffiles
15         done
16 fi
17