File: orig-tar.sh

package info (click to toggle)
yara-python 4.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 296 kB
  • sloc: ansic: 2,627; python: 1,259; sh: 10; makefile: 9
file content (16 lines) | stat: -rwxr-xr-x 266 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

VERSION=$2
FILE=$3

NEWVERSION=${VERSION}+dfsg
NEWFILE=../yara-python_${NEWVERSION}.orig.tar.xz

echo "Generating ${NEWFILE} ..."
zcat $FILE \
    | tar --wildcards --delete -f - '*/yara/*' \
    | xz -c > ${NEWFILE}.t

mv ${NEWFILE}.t ${NEWFILE}