Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added -notar option to makedist script that created uncompressed/unta…

…rred distribution, i.e. just copies minified and non-minified version of the script into the dist dir.
  • Loading branch information...
commit 98ca2a339aacb0fa2df2ebde4b1985ce1d7e407f 1 parent 8b5e3ef
@mmarcon authored
Showing with 10 additions and 1 deletion.
  1. +10 −1 scripts/makedist.sh
View
11 scripts/makedist.sh
@@ -9,6 +9,11 @@ fi
echo -n "Initializing... "
+DO_TAR=true
+if [ "$1" = "-notar" ]; then
+ DO_TAR=false
+fi
+
CURRENT_DIR=`pwd`
DIST_DIR=../dist
TEMP_DIR=/tmp/jOVI.`date "+%Y%m%d-%H.%M"`
@@ -29,7 +34,11 @@ echo "Done."
cp $INFILE $OUTFILE_NORMAL
#TarGz everything together
echo -n "Building dist... "
-tar cvzf $DIST_DIR/jOVI.tar.gz --directory $TEMP_DIR/.. `basename ${TEMP_DIR}` &> /dev/null
+if $DO_TAR; then
+ tar cvzf $DIST_DIR/jOVI.tar.gz --directory $TEMP_DIR/.. `basename ${TEMP_DIR}` &> /dev/null
+else
+ cp $TEMP_DIR/*.js $DIST_DIR
+fi
#Remove temporary directory
rm -rf $TEMP_DIR > /dev/null
echo "Done."
Please sign in to comment.
Something went wrong with that request. Please try again.