File: orig-models-tar.sh

package info (click to toggle)
dlib 19.24%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 284,176 kB
  • sloc: cpp: 316,461; xml: 26,260; python: 1,628; sh: 356; java: 229; makefile: 179; javascript: 73; perl: 18
file content (20 lines) | stat: -rwxr-xr-x 335 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#/bin/sh -e

VERSION=$2
TAR=../dlib_$VERSION.orig-models.tar.xz
NEWTAR=../dlib_$VERSION.orig-dlib-models.tar.bz2
DIR=dlib-models-$VERSION
mkdir -p $DIR

# Unpack ready fo re-packing
tar -xf $TAR -C $DIR --strip-components=1

# Uncompress the models
bzip2 -d $DIR/*.bz2

# Repack
rm $TAR
GZIP=--best tar -cjf $NEWTAR $DIR

rm -rf $DIR