File: ptr_state_key.bash

package info (click to toggle)
freecell-solver 3.26.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,864 kB
  • ctags: 3,658
  • sloc: ansic: 34,721; perl: 12,320; xml: 5,999; python: 1,149; sh: 965; ruby: 347; cpp: 304; makefile: 151
file content (3 lines) | stat: -rw-r--r-- 209 bytes parent folder | download | duplicates (3)
1
2
3
#!/bin/bash
# ruby -p -i -e '$_.gsub!(/\bptr_state_with_locations_(key|val)\b/) { |s| "ptr_state_#{$1}" }' *.[ch]
ruby -pi -e 'gsub! /\bptr_state_with_locations_orig_(key|val)\b/, "ptr_orig_state_\\1"' *.[ch]