diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2016-08-29 22:01:20 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2016-08-29 22:01:20 (GMT) |
commit | 3b878ea9d9afb8cb186597d876b569304976d74f (patch) | |
tree | 3434dc6d6bd042f4902a8d127ea8f78942c1557c | |
parent | b947f7e911e498f5455a78836a6f82a042dd5b33 (diff) | |
parent | ba5652ffc27be96fa7275b039ce2c8e249751657 (diff) | |
download | hdf5-3b878ea9d9afb8cb186597d876b569304976d74f.zip hdf5-3b878ea9d9afb8cb186597d876b569304976d74f.tar.gz hdf5-3b878ea9d9afb8cb186597d876b569304976d74f.tar.bz2 |
Merge pull request #1 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:HDFFV-9978-build-scripts-release-bbrelease to develop
* commit 'ba5652ffc27be96fa7275b039ce2c8e249751657':
Translate svn commands to git commands for chkmanifest and bbrelease scripts with source in git repository.
-rwxr-xr-x | bin/bbrelease | 8 | ||||
-rwxr-xr-x | bin/chkmanifest | 20 |
2 files changed, 15 insertions, 13 deletions
diff --git a/bin/bbrelease b/bin/bbrelease index cb79528..d81929b 100755 --- a/bin/bbrelease +++ b/bin/bbrelease @@ -268,9 +268,11 @@ if [ X$revmode = Xyes ]; then # Copy old version of config/lt_vers.am, since it's hard to # "undo" changes to it. cp config/lt_vers.am $tmpdir - branch=`svn info | grep ^URL: | awk -F/ '{print $NF}'` - revision=`svn info | grep "Revision:" | awk '{print $2}'` - # Set version information to m.n.r-r$revision. +#branch=`svn info | grep ^URL: | awk -F/ '{print $NF}'` +#revision=`svn info | grep "Revision:" | awk '{print $2}'` + branch=`git branch | awk '{print $2}'` + revision=`git rev-parse HEAD` +# Set version information to m.n.r-r$revision. # (h5vers does not correctly handle just m.n.r-$today.) VERS=`echo $VERS | sed -e s/-.*//`-r$revision echo Private release of $VERS diff --git a/bin/chkmanifest b/bin/chkmanifest index 701b6c4..f5269a1 100755 --- a/bin/chkmanifest +++ b/bin/chkmanifest @@ -93,23 +93,23 @@ done # Get the list of files under version control and check that they are # present. # -# First get a list of all the pending files with svn stat and +# First get a list of all the pending files with git status and # check those. -svn_stat=`svn stat -q` -for file in $svn_stat; do +git_stat=`git status -s` +for file in $git_stat; do - # Newly added files are not listed by svn ls, which + # Newly added files are not listed by git ls-files, which # we check later. # The line listing new files starts with 'A'. letter=`echo $file | head -c 1` if [ "$letter" = "A" ]; then - # Convert the seven Subversion status columns to './' so it matches + # Convert the git status columns to './' so it matches # the manifest file name. # # There is a space between the status columns and file name, hence - # the '8' instead of '7'. - path=`echo $file | sed 's/^.\{8\}/\.\//g'` + # the '3'. + path=`echo $file | sed 's/^.\{3\}/\.\//g'` # Ignore directories if [ ! -d $path ]; then if (grep ^$path$ $MANIFEST >/dev/null); then @@ -122,10 +122,10 @@ for file in $svn_stat; do fi done -# Next check svn ls, which gets a list of all files that are +# Next check git ls-files, which gets a list of all files that are # checked in. -svn_ls=`svn ls -R` -for file in $svn_ls; do +git_ls=`git ls-files` +for file in $git_ls; do path="./${file}" # Ignore directories if [ ! -d $path ]; then |