0 Star 0 Fork 0

地瓜粉条 / nuxeo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
fixeclipse 914 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/sh
# $Id: fixeclipse 25099 2007-09-18 23:13:08Z fguillaume $
OLD_MAIN=target/classes
NEW_MAIN=bin/main
OLD_TEST=target/test-classes
NEW_TEST=bin/test
echo "Fixing eclipse classpath to use bin output directory instead of target..."
find . -maxdepth 4 -name .classpath |
xargs grep -El "path=\"$OLD_MAIN\"|output=\"$OLD_TEST\"" |
while read i; do
echo "$i"
perl -pi -e "s,path=\"$OLD_MAIN\",path=\"$NEW_MAIN\"," "$i"
perl -pi -e "s,output=\"$OLD_TEST\",output=\"$NEW_TEST\"," "$i"
done
echo "Done."
echo "Replacing missing or badly generated files with .*.ok files..."
find . -maxdepth 4 -name '.*.ok' |
while read file; do
newfile="${file%.ok}"
if diff -bB "$file" "$newfile" >/dev/null; then
: # same file
else
echo "$newfile"
cp -f "$file" "$newfile"
fi
done
echo "Done."
1
https://gitee.com/c56kevin/nuxeo.git
git@gitee.com:c56kevin/nuxeo.git
c56kevin
nuxeo
nuxeo
master

搜索帮助