Archived
1
0

add js branding

This commit is contained in:
Jeff Becker 2016-10-07 10:17:29 -04:00
parent 40ceb747ae
commit dc75a3513e
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

View File

@ -31,8 +31,9 @@ lint() {
mini() { mini() {
echo "minify $1" echo "minify $1"
echo "" >> $2 echo "" >> $2
echo "/* local file: $1 */" >> $2 echo "/* begin $1 */" >> $2
$GOPATH/bin/minify --mime=text/javascript >> $2 < $1 $GOPATH/bin/minify --mime=text/javascript >> $2 < $1
echo "/* end $1 */" >> $2
} }
# do linting too # do linting too
@ -43,7 +44,19 @@ if [ "x$1" == "xlint" ] ; then
done done
fi fi
echo -e "//For source code and license information please check https://github.com/majestrate/nntpchan \n" > $outfile rm -f $outfile
echo '/*' >> $outfile
echo ' * For source code and license information please check https://github.com/majestrate/nntpchan' >> $outfile
brandingfile=./contrib/branding.txt
if [ -e $brandingfile ] ; then
echo ' *' >> $outfile
while read line; do
echo -n ' * ' >> $outfile;
echo $line >> $outfile;
done < $brandingfile;
fi
echo ' */' >> $outfile
if [ -e ./contrib/js/contrib/*.js ] ; then if [ -e ./contrib/js/contrib/*.js ] ; then
for f in ./contrib/js/contrib/*.js ; do for f in ./contrib/js/contrib/*.js ; do