Skip to content

Instantly share code, notes, and snippets.

@Sanne
Created June 8, 2013 11:33
Show Gist options
  • Save Sanne/5734888 to your computer and use it in GitHub Desktop.
Save Sanne/5734888 to your computer and use it in GitHub Desktop.
Search release script
SHORT_VERSION="4.3"
FULL_VERSION="4.3.0.Final"
NEXT_FULL_VERSION="4.3.1-SNAPSHOT"
##
# When editing the rsync commands, always test then with a dry run (-n) !
##
# Upload documentation to jboss.org:
rsync -rzh --progress --delete --protocol=28 "target/checkout/distribution/target/hibernate-search-"$FULL_VERSION"-dist/hibernate-search-"$FULL_VERSION"/docs/" "hibernate@filemgmt.jboss.org:/docs_htdocs/hibernate/search/"$SHORT_VERSION
cd target/checkout/distribution/target/
# Create a directory collecting the files needed for Sourceforge upload:
rm -Rf $FULL_VERSION
mkdir -p $FULL_VERSION
cp "hibernate-search-"$FULL_VERSION"-dist/hibernate-search-"$FULL_VERSION"/changelog.txt" $FULL_VERSION
cp "hibernate-search-"$FULL_VERSION"-dist/hibernate-search-"$FULL_VERSION"/README.md" $FULL_VERSION
cp *-dist.zip $FULL_VERSION
cp *-dist.tar.gz $FULL_VERSION
cp ../../modules/target/*.zip $FULL_VERSION
# Upload to Sourceforge
# Note: this step requires you to have a set your ~/.ssh/config options, in particular the username and identity key needs to be set:
# Host *.sourceforge.net
# User sannegrinovero,hibernate
# IdentityFile ~/.ssh/id_rsa
rsync -rzh --progress $FULL_VERSION frs.sourceforge.net:/home/frs/project/h/hi/hibernate/hibernate-search
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment