|
0 |
#!/bin/sh
|
|
1 |
|
|
2 |
. ./vars.sh.frag
|
|
3 |
|
|
4 |
if [ ! -d "$PKGDIR/debian" ]; then
|
|
5 |
mkdir -p "$PKGDIR/debian"
|
|
6 |
sed -e 's/^#overlay =/overlay =/' -e '/^#/d' "$DEBCARGO_GIT/debcargo.toml.example" > "$PKGCFG"
|
|
7 |
touch "$PKGDIR/debian/copyright"
|
|
8 |
git add "$PKGDIR"
|
|
9 |
fi
|
|
10 |
|
|
11 |
rm -rf "$BUILDDIR" && mkdir -p "$(dirname $BUILDDIR)"
|
|
12 |
$DEBCARGO package --config "$PKGCFG" --directory "$BUILDDIR" "$PKG"
|
|
13 |
|
|
14 |
if ! git diff -q -- "$PKGDIR_REL"; then
|
|
15 |
read -p "Update wrote some changes to $PKGDIR_REL, press enter to git diff..." x
|
|
16 |
git diff -- "$PKGDIR_REL"
|
|
17 |
fi
|
|
18 |
|
|
19 |
cat >&2 <<eof
|
|
20 |
Automatic update of $PKG finished; now it's your turn to manually review it.
|
|
21 |
|
|
22 |
Deal with any FIXMEs mentioned above, by editing the corresponding source files
|
|
23 |
in $PKGDIR_REL (and NOT the build directory as mentioned). When done, git-add
|
|
24 |
your changes and re-run this command (\`./update.sh $*\`).
|
|
25 |
|
|
26 |
Check that your fixes actually get rid of the FIXMEs. Of course, you may ignore
|
|
27 |
FIXMEs listed in hint files, indicated by (.), assuming you actually fixed the
|
|
28 |
issues in the corresponding non-hint files. (We have no way to auto-detect this
|
|
29 |
so you have to be honest!)
|
|
30 |
|
|
31 |
If satisfied with the output, run \`./release.sh $*\` to finalise your changes
|
|
32 |
in the changelog and build a release-ready .dsc in build/. Assuming it runs
|
|
33 |
successfully, you may \`dput\` the results afterwards.
|
|
34 |
eof
|