[go: up one dir, main page]

File: orig-tar.sh

package info (click to toggle)
commons-io 1.4-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,760 kB
  • ctags: 2,022
  • sloc: java: 14,608; xml: 2,302; makefile: 14; sh: 13
file content (21 lines) | stat: -rwxr-xr-x 451 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh -e

# called by uscan with '--upstream-version' <version> <file>
UDIR=commons-io-$2-src
DDIR=libcommons-io-java-$2.orig

# Remove ^M CRLF line terminators
tar -z -x -f $3
mv $UDIR $DDIR
(cd $DDIR; find -type f|xargs perl -pi -e 's/\r$//g')
GZIP=--best tar -c -z -f $3 $DDIR
rm -rf $DDIR $UDIR

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

exit 0