123456789101112131415161718192021222324252627282930313233343536373839 |
- #!/bin/bash
-
-
-
- mkit_import build
- mkit_import target
-
- debstuff__main() {
-
-
-
- local version
- local debian_skel
- local dfsrc
- local dftgt
- target__run dist || die
- version=$(build__cached semver)
-
-
-
- mv "${MKIT_PROJ_PKGNAME}-$version.tar.gz" \
- "${MKIT_PROJ_PKGNAME}_$version.orig.tar.gz" \
- || die "could not rename tarball"
- build__record "${MKIT_PROJ_PKGNAME}_$version.orig.tar.gz"
-
-
-
- debian_skel=$(ini 1value dist:debstuff)
- test -n "$debian_skel" || die "dist:debstuff not specified"
- test -d "$debian_skel" || die "debian directory template found: $debian_skel"
- mkdir -p debian/source
- find "$debian_skel" -type f \
- | while read -r dfsrc; do
- dftgt="debian/${dfsrc#"$debian_skel"}"
- mkdir -p "$(dirname "$dftgt")"
- build__file "$dfsrc" "$dftgt" debstuff
- done
- build__recordr debian
- }
|