RSS Git Download  Clone
Raw View History
Blames found: 11 Mode: shell Binary: false


Hang on, we reloading big blames...
#!/usr/bin/env bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" TOP=$DIR/.. version=$( node -e "console.log(require('$TOP/package.json').version)" ) name=gitlist-$version repo=$TOP/build/$name pushd $TOP composer install --no-dev composer dump-autoload --optimize
#npm install
grunt
npm run webpack --production
rm -rf $repo || true mkdir -p $repo
for item in "$TOP/cache" "$TOP/src" "$TOP/themes" "$TOP/vendor" "$TOP/webpack"
do echo $item cp -R $item $repo/ done for item in "$TOP/INSTALL.md" "$TOP/LICENSE" "$TOP/README.md" "$TOP/boot.php" "$TOP/config.example.ini" "$TOP/index.php" "$TOP/package.json" "$TOP/.htaccess" do echo $item cp $item $repo/ done
rm -rf $repo/themes/bootstrap/less rm -rf $repo/themes/bootstrap/js
zipname=$TOP/build/$name.zip rm -rf $zipname pushd $repo zip -r $TOP/build/$name.zip * .* popd
RELEASE=$TOP/build/release rm -rf $RELEASE || true mv $repo $RELEASE cp $TOP/config.ini $RELEASE cp -R $TOP/git-test $RELEASE/
popd