Don't use slashes in the date field ('/') because it'll confuse other
sed scripts in a build of that tarball (e.g., when substituting the date into man pages). This commit was SVN r25389.
Этот коммит содержится в:
родитель
e50bcbf028
Коммит
b0bd0b3924
@ -272,11 +272,11 @@ do_command "svn co $svnroot -r $r ompi"
|
|||||||
cd ompi
|
cd ompi
|
||||||
svnversion="r`svnversion .`"
|
svnversion="r`svnversion .`"
|
||||||
version_files="`find . -name VERSION`"
|
version_files="`find . -name VERSION`"
|
||||||
d=`date +'%m/%d/%Y'`
|
d=`date +'%b %d, %Y'`
|
||||||
for file in $version_files; do
|
for file in $version_files; do
|
||||||
sed -e 's/^want_repo_rev=.*/want_repo_rev=1/' \
|
sed -e 's/^want_repo_rev=.*/want_repo_rev=1/' \
|
||||||
-e 's/^repo_rev=.*/repo_rev='$svnversion/ \
|
-e 's/^repo_rev=.*/repo_rev='$svnversion/ \
|
||||||
-e 's@^date=.*@date="Nightly snapshot tarball, '$d'"@' \
|
-e 's@^date=.*@date="'"$d"' (nightly snapshot tarball)"@' \
|
||||||
$file > $file.new
|
$file > $file.new
|
||||||
cp -f $file.new $file
|
cp -f $file.new $file
|
||||||
rm -f $file.new
|
rm -f $file.new
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user