📄 mailer-init.sh
字号:
#!/bin/sh## mailer-init.sh: create and initialize a repository for the mailer tests## USAGE: ./mailer-init.sh#scripts="`dirname $0`"scripts="`cd $scripts && pwd`"d=mailer-init.$$mkdir $dcd $decho "test directory is: $d"svnadmin create repossvn co file://`pwd`/repos wccd wc# create a bunch of dirs and filesmkdir dir1 dir2echo file1 > file1echo file2 > file2echo file3 > dir1/file3echo file4 > dir1/file4echo file5 > dir2/file5echo file6 > dir2/file6svn add *svn commit -m "initial load"# make some changesecho change C1 >> file2echo change C2 >> dir2/file5svn commit -m "two file changes"# copy a file and a dirsvn cp file1 dir2/file7svn cp dir1 dir3svn commit -m "two copies"# copy and modify a filesvn cp file1 dir3/file8echo change C3 >> dir3/file8svn commit -m "copied and changed"# add a file, add a dir, and make a changeecho file9 > file9svn add file9svn mkdir dir4echo change C4 >> dir1/file3svn commit -m "mixed addition and change"# add a file, add a dir, delete a file, delete a dir, and make a changeecho file10 > dir1/file10svn add dir1/file10svn mkdir dir3/dir5svn rm file2 dir2echo change C5 >> dir3/file3svn up # make sure our dirs are up to datesvn commit -m "adds, deletes, and a change"# copy a dir and change a file in itsvn cp dir3 dir6echo change C6 >> dir6/file4svn commit -m "copy dir, then make a change"# tweak the commit dates to known quantities$scripts/mailer-tweak.py ../repos
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -