b29254d
#!/bin/sh
b29254d
name=specfile-editor
b29254d
svn_repo="svn://dev.eclipse.org/svnroot/technology/org.eclipse.linuxtools/rpm/trunk/"
b29254d
b29254d
# Usage message
b29254d
usage="usage: $0 <svn_rev>"
b29254d
tag=$1
b29254d
tar_name=$name-fetched-src-$tag
b29254d
b29254d
# Ensure we got the desired CVS tag
b29254d
if [ "x$tag"x = "xx" ]
b29254d
then
b29254d
   echo >&2 "$usage"
b29254d
   exit 1
b29254d
fi
b29254d
b29254d
# cleanup dir
b29254d
rm -fr $tar_name
b29254d
# prepare archive
b29254d
mkdir $tar_name
b29254d
pushd $tar_name &> /dev/null
b29254d
for bundle in \
b29254d
"org.eclipse.linuxtools.rpm.ui.editor" \
b29254d
"org.eclipse.linuxtools.rpm.rpmlint" \
b29254d
"org.eclipse.linuxtools.rpm.ui.editor-feature"; 
b29254d
do 
b29254d
svn export $svn_repo/$bundle 
b29254d
done
b29254d
popd &> /dev/null
b29254d
# create archive
b29254d
tar -cjf $tar_name.tar.bz2 $tar_name
b29254d