mailer-t1.sh

来自「subversion-1.4.3-1.tar.gz 配置svn的源码」· Shell 代码 · 共 32 行

SH
32
字号
#!/bin/sh## mailer-t1.sh: test #1 for the mailer.py script## This test generates "email" for each revision in the repository,# concatenating them into one big blob, which is then compared against# a known output.## Note: mailer-tweak.py must have been run to make the test outputs#       consistent and reproducible## USAGE: ./mailer-t1.sh REPOS MAILER-SCRIPT#if test "$#" != 2; then    echo "USAGE: ./mailer-t1.sh REPOS MAILER-SCRIPT"    exit 1figlom=mailer-t1.currentrm -f $glomyoungest="`svnlook youngest $1`"for rev in `python -c "import string; print string.join(map(str, range(1,$youngest+1)))"`; do  $2 commit $1 $rev >> $glomdoneecho "current mailer.py output in: $glom"echo diff -q mailer-t1.output $glomdiff -q mailer-t1.output $glom && echo "SUCCESS: no differences detected"

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?