https://bz.apache.org/bugzilla/show_bug.cgi?id=69756

            Bug ID: 69756
           Summary: #!/bin/sh # # Compare current routes to the ones you
                    had before local changes. # # diff_routes  echo
                    'Generating new routes...' bundle exec rake routes >
                    new_routes  # stash all your local changes quietly git
                    stash --quiet  echo 'Generating old routes...'
           Product: Ant
           Version: 1.10.11
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build Process
          Assignee: notifications@ant.apache.org
          Reporter: ni1017...@gmail.com
  Target Milestone: ---

#!/bin/sh
#
# Compare current routes to the ones you had before local changes.
#
# diff_routes

echo 'Generating new routes...'
bundle exec rake routes > new_routes

# stash all your local changes quietly
git stash --quiet

echo 'Generating old routes...'
bundle exec rake routes > old_routes

if [[ -f old_routes && -f new_routes ]]; then
  echo 'Compare!'
  diff_results=`diff -uw old_routes new_routes`

  if [[ -n $diff_results ]]; then
    echo $diff_results
  else
    echo 'No route changes. Check for errors in generated files or try
restarting your shell.'
  fi
fi

# restore changes
git stash pop --quiet

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to