Advertisement
mmu_man

parse_haiku_package_version_for_os-prober.sh

Aug 6th, 2014
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.40 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. revs="
  4. haiku-r1~alpha4_pm_hrev47502-1-x86_gcc2.hpkg
  5. haiku-r1~alpha4_hrev47502-1-x86_gcc2.hpkg
  6. haiku-r1~alpha4-1-x86_gcc2.hpkg
  7. haiku-r1~alpha4-1-arm.hpkg
  8. haiku-r1~alpha4-1-arm.hpkg
  9. "
  10.  
  11. for rev in $revs; do
  12.     echo "$rev" | LC_ALL=C sed 's/haiku-\(.*\)~/\U\1\E /;s/ \([a-z]\+[0-9]\+\)[_-]/ \1 /;s/ [a-z]*_\?\(hrev[0-9]\+\)\+-/ (\1) /;s/ \([0-9]\+\)-/ [\1] /;s/[^ ]\+.hpkg//;s/ $//'
  13. echo
  14. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement