Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 13 lines (11 sloc) 543 Bytes
#!/bin/bash
VERSION=`grep VERSION= Makefile | sed -e 's/VERSION=\(.*\)/\1/'`
if [ -z "$1" ]; then
echo $VERSION;
elif [ "$1" != "$VERSION" ]; then
sed -e "s/{{VERSION}}/"$1"/" Makefile.in > Makefile
git mv css/jquery.filebrowser-${VERSION}.css css/jquery.filebrowser-${1}.css
git mv css/jquery.filebrowser-${VERSION}.min.css css/jquery.filebrowser-${1}.min.css
git mv js/jquery.filebrowser-${VERSION}.js js/jquery.filebrowser-${1}.js
git mv js/jquery.filebrowser-${VERSION}.min.js js/jquery.filebrowser-${1}.min.js
fi