Add a new test for overloading.pm
[p5sagit/p5-mst-13.2.git] / make_patchnum.sh
index 1eb309d..a00e121 100644 (file)
@@ -29,7 +29,7 @@ elif [ -d ".git" ]; then
        extra_info="git_commit_date='$commit_created'"
        if [ -n "$branch" ] && [ -n "$remote" ]; then
                unpushed_commit_list=`git cherry $remote/$branch | awk 'BEGIN{ORS=","} /\+/ {print $2}' | sed -e 's/,$//'`
-               unpushed_commits=`git cherry $remote/$branch | awk 'BEGIN{ORS="\t\\\n"} /\+/ {print ",\"" $2 "\""}'`
+               unpushed_commits=`git cherry $remote/$branch | awk 'BEGIN{ORS="\t\\\\\n"} /\+/ {print ",\"" $2 "\""}'`
 
                if [ -n "$unpushed_commits" ]; then
                        commit_title="Local Commit:"
@@ -63,7 +63,7 @@ new_config=`cat <<EOFDATA
 # WARNING: lib/Config_git.pl is generated by make_patchnum.sh   #
 #          DO NOT EDIT DIRECTLY - edit make_patchnum.sh instead #
 #################################################################
-\$Config::Git_Data=<<'ENDOFGIT';
+\\$Config::Git_Data=<<'ENDOFGIT';
 git_commit_id='$commit_id'
 git_describe='$describe'
 git_branch='$branch'