Files
rawTherapee/export-dist.sh
Lawrence Lee 638ecc4cde Squashed 'rtengine/libraw/' content from commit cccb97647
git-subtree-dir: rtengine/libraw
git-subtree-split: cccb97647fcee56801fa68231fa8a38aa8b52ef7
2023-11-12 11:49:00 -08:00

29 lines
398 B
Bash
Executable File

#!/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