File: make_dfsg.sh

package info (click to toggle)
getfem%2B%2B 5.1%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 32,668 kB
  • ctags: 20,930
  • sloc: cpp: 110,660; ansic: 72,312; python: 6,064; sh: 3,608; perl: 1,710; makefile: 1,343
file content (19 lines) | stat: -rwxr-xr-x 296 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#/!/bin/bash

if [ $# -lt 1 ]
then
  echo Please, add the tarball-name
  exit 1
fi

rm -rf ./tmp/
mkdir tmp
tar -xzvf $1 -C ./tmp/
find ./tmp -name \*.so | xargs rm

file="$1"
file_base=${file%.orig.tar.*}

file_new=$file_base+dfsg1.orig.tar.xz

cd tmp; tar -cf - ./* | xz -9 -c - > ../$file_new