- set native eol properties for the startup scripts for unix and win
- add a whitespace normalizing command to the gridworks script git-svn-id: http://google-refine.googlecode.com/svn/trunk@595 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
92ecc0c0f5
commit
860172f751
18
gridworks
18
gridworks
@ -67,6 +67,8 @@ and <action> is one of
|
|||||||
cpd ....................... Run Copy/Paste Detection against Gridworks
|
cpd ....................... Run Copy/Paste Detection against Gridworks
|
||||||
jslint .................... Run JSlint against Gridworks
|
jslint .................... Run JSlint against Gridworks
|
||||||
|
|
||||||
|
whitespace <extension> .... Normalize whitespace in files with the given extension
|
||||||
|
|
||||||
mac_dist <version> ........ Make MacOSX binary distribution
|
mac_dist <version> ........ Make MacOSX binary distribution
|
||||||
windows_dist <version> .... Make Windows binary distribution
|
windows_dist <version> .... Make Windows binary distribution
|
||||||
linux_dist <version> ...... Make Linux binary distribution
|
linux_dist <version> ...... Make Linux binary distribution
|
||||||
@ -633,6 +635,21 @@ jslint() {
|
|||||||
open "$GRIDWORKS_BUILD_DIR/reports/jslint.txt"
|
open "$GRIDWORKS_BUILD_DIR/reports/jslint.txt"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
whitespace() {
|
||||||
|
[ $# -gt 0 ] || usage
|
||||||
|
|
||||||
|
for i in `find . -name *.$1`; do
|
||||||
|
# expand tabs to spaces
|
||||||
|
expand -t 4 < $i > $i.1
|
||||||
|
|
||||||
|
# convert DOS to UNIX newlines
|
||||||
|
tr -d '\r' < $i.1 > $i.2
|
||||||
|
|
||||||
|
rm $i $i.1
|
||||||
|
mv $i.2 $i
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
# -------------------------- script -----------------------------
|
# -------------------------- script -----------------------------
|
||||||
|
|
||||||
# ----- Normalize the current directory -------------------------
|
# ----- Normalize the current directory -------------------------
|
||||||
@ -779,6 +796,7 @@ add_option "-Dpython.path=$JYTHONPATH"
|
|||||||
case "$ACTION" in
|
case "$ACTION" in
|
||||||
build) build_prepare; ant build;;
|
build) build_prepare; ant build;;
|
||||||
clean) ant clean;;
|
clean) ant clean;;
|
||||||
|
whitespace) whitespace $1;;
|
||||||
distclean) ant distclean;;
|
distclean) ant distclean;;
|
||||||
test) test $1;;
|
test) test $1;;
|
||||||
tests) test $1;;
|
tests) test $1;;
|
||||||
|
Loading…
Reference in New Issue
Block a user