Advertisement
mmu_man

parse_haiku_package_version_for_os-prober.sh

Aug 6th, 2014
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. haiku-r1-1-arm.hpkg
  10. haiku-1-arm.hpkg
  11. "
  12.  
  13. for rev in $revs; do
  14.     echo "$rev" | LC_ALL=C sed 's/haiku-//;s/^\(r[0-9]\+\)./\U\1\E /;s/ \([a-z]\+[0-9]\+\)[_-]/ \1 /;s/ [a-z]*_\?\(hrev[0-9]\+\)\+-/ (\1) /;s/ \([0-9]\+\)-/ [\1] /;s/[^ ]\+.hpkg//;s/ $//'
  15. echo
  16. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement