@@ -37,9 +37,9 @@ case "$PROJECT" in
3737 ;;
3838 * )
3939 if [ -z " ${PROJECT} " ]; then
40- echo " Error: Expected environment variable PROJECT=[community|nova]"
40+ echo " $( basename " $0 " ) : Error: Expected environment variable PROJECT=[community|nova]"
4141 else
42- echo " Error: Unknown project '$PROJECT ', expected 'community' or 'nova'"
42+ echo " $( basename " $0 " ) : Error: Unknown project '$PROJECT ', expected 'community' or 'nova'"
4343 fi
4444 echo " Usage: PROJECT=[community|nova] $0 "
4545 exit 42;;
@@ -56,24 +56,24 @@ for _dir in $_dirs
5656do
5757 if [ -d " $BASEDIR /$_dir " ]; then
5858 if [ ! -f " $BASEDIR /$_dir /revision" ]; then
59- echo " Creating revision file in $_dir "
59+ echo " $( basename " $0 " ) : Debug: Creating revision file in $_dir "
6060
6161 # Get the revision hash
6262 R=$( git -C " $BASEDIR /$_dir " log --abbrev=$CORE_ABBREV --pretty=' format:%h' -1 -- .) || false
6363
6464 # Make sure there are no hash collisions
6565 if ! git -C " $BASEDIR /$_dir " show " $R " --oneline > /dev/null; then
66- echo " abbreviated commit hash of $CORE_ABBREV is not unique. Consider increasing the value in the script $0 ."
66+ echo " $( basename " $0 " ) : Error: abbreviated commit hash of $CORE_ABBREV is not unique. Consider increasing the value in the script $0 ."
6767 exit 1
6868 fi
6969
7070 # Create the revision file
7171 echo " $R " | tr -d ' \n' > " $BASEDIR /$_dir /revision"
7272 else
73- echo " Revision file already exists in $_dir "
73+ echo " $( basename " $0 " ) : Debug: Revision file already exists in $_dir "
7474 fi
7575 else
76- echo " Error: Expected to find the '$_dir ' directory in '$BASEDIR ', but it's not there"
76+ echo " $( basename " $0 " ) : Error: Expected to find the '$_dir ' directory in '$BASEDIR ', but it's not there"
7777 exit 1
7878 fi
7979done
0 commit comments