xenocara_rebrand.sh 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #!/bin/sh
  2. #########################
  3. # Name: xenocara_rebrand.sh
  4. # Main: jadedctrl
  5. # Lisc: ISC
  6. # Desc: Rebranding xenocara
  7. # sources for use in
  8. # LBSD.
  9. #########################
  10. PATCH_DIR=/tmp/xenocara_rebrand
  11. if [ -e $PATCH_DIR ]
  12. then
  13. self_destruct_sequence $PATCH_DIR
  14. else
  15. mkdir $PATCH_DIR
  16. fi
  17. if test -z $1
  18. then
  19. SRC_DIR=/usr/xenocara
  20. else
  21. SRC_DIR=$1
  22. fi
  23. . ./libdeblob.sh
  24. rep "OpenBSD __osrelease__" "LibertyBSD __osrelease__" app/fvwm/sample.fvwmrc/system.fvwmrc
  25. rep "Geometry 80x60" "Geometry 90x65" app/fvwm/sample.fvwmrc/system.fvwmrc
  26. lineadd "\*:OpenBSD:\*:)" "\*:LibertyBSD:\*:)" app/twm/config.guess
  27. lineadd "\*:OpenBSD:\*:)" "exit;;" app/twm/config.guess
  28. lineadd "\*:OpenBSD:\*:)" "echo \${UNAME_MACHINE_ARCH}-unknown-openbsd\${UNAME_RELEASE}" app/twm/config.guess
  29. lineadd "\*:OpenBSD:\*:)" "UNAME_MACHINE_ARCH=\`arch | sed 's/OpenBSD.//'\`" app/twm/config.guess
  30. filecp files/pixmaps/LibertyBSD_15bpp.xpm app/xenodm/config/LibertyBSD_15bpp.xpm
  31. filecp files/pixmaps/LibertyBSD_1bpp.xpm app/xenodm/config/LibertyBSD_1bpp.xpm
  32. filecp files/pixmaps/LibertyBSD_4bpp.xpm app/xenodm/config/LibertyBSD_4bpp.xpm
  33. filecp files/pixmaps/LibertyBSD_8bpp.xpm app/xenodm/config/LibertyBSD_8bpp.xpm
  34. rep "OpenBSD_" "LibertyBSD_" app/xenodm/config/Xresources.in
  35. rep "OpenBSD_" "LibertyBSD_" app/xenodm/config/Makefile.in
  36. rep "OpenBSD_" "LibertyBSD_" app/xenodm/config/Makefile.am
  37. rep "OpenBSD_" "LibertyBSD_" app/xenodm/Makefile.bsd-wrapper
  38. rep "pixmaps/OpenBSD" "pixmaps/LibertyBSD" distrib/sets/lists/xshare/mi
  39. lineadd "*:OpenBSD:*:*)" "*:LibertyBSD:*:*)" font/util/config.guess
  40. lineadd "*:OpenBSD:*:*)" " exit ;;" font/util/config.guess
  41. lineadd "*:OpenBSD:*:*)" " echo \${UNAME_MACHINE_ARCH}-unknown-openbsd\${UNAME_RELEASE}" font/util/config.guess
  42. lineadd "*:OpenBSD:*:*)" " UNAME_MACHINE_ARCH=\`arch | sed 's/OpenBSD.//'\`" font/util/config.guess
  43. rep "sh " "build_alias=\${MACHINE_ARCH}-unknown-openbsd6.3 sh " app/xlockmore/Makefile.bsd-wrapper
  44. rep "exec sh " "build_alias=\${MACHINE_ARCH}-unknown-openbsd6.3 exec sh " share/mk/bsd.xorg.mk
  45. apply