File: prepare-release.sh

package info (click to toggle)
btrfsmaintenance 0.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 236 kB
  • sloc: sh: 356; python: 50; makefile: 9
file content (21 lines) | stat: -rwxr-xr-x 432 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

base=btrfsmaintenance
version=$(grep -i ^version: ${base}.spec | awk '{print $2}')
tardir="${base}-${version}"

rm -rf "$tardir"
mkdir "$tardir"
cp *.py $tardir
cp *.sh $tardir
cp *.service $tardir
cp *.timer $tardir
cp *.template $tardir
cp *.path $tardir
cp sysconfig.* $tardir
cp COPYING $tardir
cp README.* $tardir
cp btrfsmaintenance-functions $tardir
rm $tardir/$(basename $0)

tar cvjf "$tardir".tar.bz2 "$tardir"