File: build-tar

package info (click to toggle)
debocker 0.2.6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 152 kB
  • sloc: python: 557; sh: 56; makefile: 19
file content (18 lines) | stat: -rwxr-xr-x 381 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
# takes all build files and extracts them as tar
# on the stdout

set -eu
shopt -s nullglob

source /root/source/info

cd /root/source/

if [ "${format}" = "native" ]; then
    # native
    exec tar -cf - *.build *.buildinfo *.changes *.deb *.dsc *.tar.*
else
    # non-native
    exec tar -cf - *.build *.buildinfo *.changes *.deb *.dsc *.debian.tar.* *.orig.tar.*
fi