Improve make-archive.sh script
This commit is contained in:
@@ -7,7 +7,7 @@ cd /tmp
|
|||||||
rm -rf /tmp/$APP /tmp/$APP-*.zip 2>/dev/null
|
rm -rf /tmp/$APP /tmp/$APP-*.zip 2>/dev/null
|
||||||
git clone git@github.com:fguillot/$APP.git
|
git clone git@github.com:fguillot/$APP.git
|
||||||
rm -rf $APP/data/*.sqlite $APP/.git $APP/.gitignore $APP/scripts $APP/tests $APP/Vagrantfile
|
rm -rf $APP/data/*.sqlite $APP/.git $APP/.gitignore $APP/scripts $APP/tests $APP/Vagrantfile
|
||||||
sed -i.bak s/master/$VERSION/g $APP/models/base.php && rm -f $APP/models/*.bak
|
sed -i.bak s/master/$VERSION/g $APP/common.php && rm -f $APP/*.bak
|
||||||
zip -r $APP-$VERSION.zip $APP
|
zip -r $APP-$VERSION.zip $APP
|
||||||
mv $APP-*.zip ~/Devel/websites/$APP
|
mv $APP-*.zip ~/Devel/websites/$APP
|
||||||
rm -rf /tmp/$APP 2>/dev/null
|
rm -rf /tmp/$APP 2>/dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user