Add script that re-generates .gitignore_global and .hgignore_global.
Also update the crontab file to show that it's running nightly at 1am. This commit was SVN r31409.
Этот коммит содержится в:
родитель
5e4371139d
Коммит
0a5891760d
@ -82,6 +82,14 @@
|
||||
1 21 * * * $HOME/scripts/hwloc-nightly-tarball.sh </dev/null >/dev/null 2>&1
|
||||
5 21 * * * $HOME/scripts/openmpi-nightly-tarball.sh </dev/null >/dev/null 2>&1
|
||||
|
||||
|
||||
#######################################################################
|
||||
# Keep OMPI svn:ignore properties in sync with .gitignore_global and
|
||||
# .hgignore_global
|
||||
#######################################################################
|
||||
0 1 * * * $HOME/scripts/openmpi-nightly-githgignore.sh
|
||||
|
||||
|
||||
#######################################################################
|
||||
# Update web sites
|
||||
#######################################################################
|
||||
|
63
contrib/nightly/openmpi-nightly-githgignore.sh
Исполняемый файл
63
contrib/nightly/openmpi-nightly-githgignore.sh
Исполняемый файл
@ -0,0 +1,63 @@
|
||||
#!/bin/sh
|
||||
|
||||
#####
|
||||
#
|
||||
# Configuration options
|
||||
#
|
||||
#####
|
||||
|
||||
# Dir for ignore SVN checkouts
|
||||
ignore_top=/u/mpiteam/openmpi/ignore-files
|
||||
|
||||
# helper scripts dir
|
||||
script_dir=/u/mpiteam/scripts
|
||||
|
||||
# Branches on which to build .gitignore and .hgignore
|
||||
if [ $# -eq 0 ] ; then
|
||||
# We don't care about older than v1.6
|
||||
#dirs="trunk branches/v1.8 branches/v1.6"
|
||||
dirs="trunk"
|
||||
else
|
||||
dirs=$@
|
||||
fi
|
||||
|
||||
export PATH=$HOME/local/bin:$PATH
|
||||
export LD_LIBRARY_PATH=$HOME/local/lib:$LD_LIBRARY_PATH
|
||||
|
||||
#####
|
||||
#
|
||||
# Actually do stuff
|
||||
#
|
||||
#####
|
||||
|
||||
doit() {
|
||||
cmd="$*"
|
||||
out=`eval $*`
|
||||
if test $? -ne 0; then
|
||||
echo command failed: $cmd
|
||||
echo directory: `pwd`
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
# Loop making ignore files
|
||||
for dir in $dirs; do
|
||||
cd $ignore_top/$dir
|
||||
|
||||
doit svn up
|
||||
doit svnversion .
|
||||
if test "`echo $out | egrep '[MSP:]'`" != ""; then
|
||||
echo Not clean SVN checkout in `pwd` -- ignored
|
||||
exit 1
|
||||
fi
|
||||
doit svn st
|
||||
if test -n "$out"; then
|
||||
echo Not clean SVN checkout in `pwd` -- ignored
|
||||
exit 1
|
||||
fi
|
||||
|
||||
doit ./contrib/git/build-gitignore.pl --output .gitignore_global
|
||||
doit ./contrib/hg/build-hgignore.pl --output .hgignore_global
|
||||
|
||||
doit svn commit -m .gitignore_global .hgignore_global -m '"Update git/hg ignore files"'
|
||||
done
|
Загрузка…
Ссылка в новой задаче
Block a user