forked from fastslack/jUpgrade
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request fastslack#24 from Kriechi/new_release_system
updated release-script
- Loading branch information
Showing
2 changed files
with
38 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
# | ||
# * jUpgrade | ||
# * | ||
# * @author Matias Aguirre | ||
# * @email maguirre@matware.com.ar | ||
# * @url http://www.matware.com.ar | ||
# * @license GNU/GPL | ||
# | ||
|
||
PROJECT="jupgrade" | ||
VERSION="1.2.5beta" | ||
|
||
DIR="com_$PROJECT" | ||
PACKAGE="com_$PROJECT-$VERSION.zip" | ||
|
||
# copy all needed files | ||
rm -rf $DIR | ||
cp -r ../trunk $DIR | ||
|
||
# delete version-control stuff and other files | ||
find $DIR -name ".git" -type d -exec rm -rf {} \; | ||
find $DIR -name ".DS_Store" -exec rm -rf {} \; | ||
|
||
# delete unused files | ||
rm $DIR/admin/${PROJECT}.xml | ||
rm $DIR/TODO | ||
|
||
# create package | ||
rm $PACKAGE | ||
zip -rq $PACKAGE $DIR | ||
|
||
# create symlink | ||
rm -rf com_${PROJECT}-latest.zip | ||
ln -s $PACKAGE com_${PROJECT}-latest.zip | ||
|
||
# cleanup | ||
rm -rf $DIR |
This file was deleted.
Oops, something went wrong.