File: orig-tar.sh

package info (click to toggle)
coinor-flopc++ 1.0.6-3.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, sid, stretch, wheezy
  • size: 3,724 kB
  • sloc: sh: 9,640; cpp: 4,825; makefile: 264; ansic: 45
file content (21 lines) | stat: -rw-r--r-- 393 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
21
#!/bin/sh

# called by uscan with '--upstream-version' <version> <file>
tar xzf $3
rm -rf FlopC++-*/CoinUtils/*
rm -rf FlopC++-*/Cbc/*
rm -rf FlopC++-*/Cgl/*
rm -rf FlopC++-*/Osi/*
rm -rf FlopC++-*/Clp/*
rm -f $3
tar czf $3 FlopC++-*
rm -rf FlopC++-*

# move to directory 'tarballs'
if [ -r .svn/deb-layout ]; then
  . .svn/deb-layout
  mv $3 $origDir
  echo "moved $3 to $origDir"
fi

exit 0