File: export-dist.sh

package info (click to toggle)
libraw 0.19.2-2
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 4,396 kB
  • sloc: cpp: 39,147; ansic: 23,363; perl: 145; makefile: 87; sh: 77
file content (28 lines) | stat: -rwxr-xr-x 398 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
22
23
24
25
26
27
28
#!/bin/sh

DEST=$1
VERSION=$2
if test x$VERSION = x ; then
 VERSION=`./version.sh`
 echo VERSION set to $VERSION
fi

if test -d $DEST ; then
 echo Using $DEST/$VERSION
else
  echo Usage: $0 destination-dir
  exit 1
fi
cd ..
for dir in LibRaw 
do
 cd $dir
 git pull origin
 cd ..
done
for dir in LibRaw 
do
 cd $dir
 git archive --prefix=$dir-$VERSION/ $VERSION | (cd $DEST; tar xvf - )
 cd ..
done