2014-02-08 20:13:14 +01:00
|
|
|
#!/bin/sh
|
2013-07-23 00:07:58 +02:00
|
|
|
|
|
|
|
VERSION=$1
|
2014-09-19 18:54:48 +02:00
|
|
|
APP="miniflux"
|
2013-07-23 00:07:58 +02:00
|
|
|
|
|
|
|
cd /tmp
|
2014-09-19 18:54:48 +02:00
|
|
|
rm -rf /tmp/$APP /tmp/$APP-*.zip 2>/dev/null
|
2013-07-23 00:07:58 +02:00
|
|
|
|
2014-11-19 02:45:56 +01:00
|
|
|
git clone --depth 1 https://github.com/fguillot/$APP.git
|
2014-09-19 18:54:48 +02:00
|
|
|
|
|
|
|
rm -rf $APP/data/*.sqlite \
|
|
|
|
$APP/.git \
|
|
|
|
$APP/scripts \
|
2014-12-24 03:28:26 +01:00
|
|
|
$APP/Dockerfile \
|
|
|
|
$APP/vendor/composer/installed.json
|
2014-09-19 18:54:48 +02:00
|
|
|
|
2014-12-24 03:28:26 +01:00
|
|
|
find $APP -name docs -type d -exec rm -rf {} +;
|
|
|
|
find $APP -name tests -type d -exec rm -rf {} +;
|
|
|
|
|
|
|
|
find $APP -name composer.json -delete
|
|
|
|
find $APP -name phpunit.xml -delete
|
|
|
|
find $APP -name .travis.yml -delete
|
|
|
|
find $APP -name README.* -delete
|
|
|
|
find $APP -name .gitignore -delete
|
2014-09-19 18:54:48 +02:00
|
|
|
find $APP -name *.less -delete
|
|
|
|
find $APP -name *.scss -delete
|
|
|
|
find $APP -name *.rb -delete
|
|
|
|
|
|
|
|
sed -i.bak s/master/$VERSION/g $APP/common.php && rm -f $APP/*.bak
|
|
|
|
|
|
|
|
zip -r $APP-$VERSION.zip $APP
|
|
|
|
mv $APP-*.zip ~/Devel/websites/$APP
|
|
|
|
|
|
|
|
cd ~/Devel/websites/$APP/
|
|
|
|
unlink $APP-latest.zip
|
|
|
|
ln -s $APP-$VERSION.zip $APP-latest.zip
|
|
|
|
|
|
|
|
rm -rf /tmp/$APP 2>/dev/null
|