xenocara_rebrand.sh 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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/xdm/config/LibertyBSD_15bpp.xpm
  31. filecp files/pixmaps/LibertyBSD_1bpp.xpm app/xdm/config/LibertyBSD_1bpp.xpm
  32. filecp files/pixmaps/LibertyBSD_4bpp.xpm app/xdm/config/LibertyBSD_4bpp.xpm
  33. filecp files/pixmaps/LibertyBSD_8bpp.xpm app/xdm/config/LibertyBSD_8bpp.xpm
  34. filecp files/pixmaps/LibertyBSD_15bpp.xpm app/xenodm/config/LibertyBSD_15bpp.xpm
  35. filecp files/pixmaps/LibertyBSD_1bpp.xpm app/xenodm/config/LibertyBSD_1bpp.xpm
  36. filecp files/pixmaps/LibertyBSD_4bpp.xpm app/xenodm/config/LibertyBSD_4bpp.xpm
  37. filecp files/pixmaps/LibertyBSD_8bpp.xpm app/xenodm/config/LibertyBSD_8bpp.xpm
  38. rep "BITMAPDIR/\*\*//OpenBSD" "BITMAPDIR/**//LibertyBSD" app/xdm/config/Xresources.cpp
  39. rep "--with-color-pixmap=OpenBSD" "--with-color-pixmap=LibertyBSD" app/xdm/Makefile.bsd-wrapper
  40. rep "--with-bw-pixmap=OpenBSD" "--with-bw-pixmap=LibertyBSD" app/xdm/Makefile.bsd-wrapper
  41. rep "/config/OpenBSD_" "/config/LibertyBSD_" app/xdm/Makefile.bsd-wrapper
  42. rep "BITMAPDIR/\*\*//OpenBSD" "BITMAPDIR/**//LibertyBSD" app/xenodm/config/Xresources.cpp
  43. rep "--with-color-pixmap=OpenBSD" "--with-color-pixmap=LibertyBSD" app/xenodm/Makefile.bsd-wrapper
  44. rep "--with-bw-pixmap=OpenBSD" "--with-bw-pixmap=LibertyBSD" app/xenodm/Makefile.bsd-wrapper
  45. rep "/config/OpenBSD_" "/config/LibertyBSD_" app/xenodm/Makefile.bsd-wrapper
  46. rep "OpenBSD_" "LibertyBSD_" app/xenodm/config/Makefile.am
  47. rep "OpenBSD_" "LibertyBSD_" app/xenodm/config/Makefile.in
  48. rep "pixmaps/OpenBSD" "pixmaps/LibertyBSD" distrib/sets/lists/xshare/mi
  49. lineadd "*:OpenBSD:*:*)" "*:LibertyBSD:*:*)" font/util/config.guess
  50. lineadd "*:OpenBSD:*:*)" " exit ;;" font/util/config.guess
  51. lineadd "*:OpenBSD:*:*)" " echo \${UNAME_MACHINE_ARCH}-unknown-openbsd\${UNAME_RELEASE}" font/util/config.guess
  52. lineadd "*:OpenBSD:*:*)" " UNAME_MACHINE_ARCH=\`arch | sed 's/OpenBSD.//'\`" font/util/config.guess
  53. rep "sh " "build_alias=\${MACHINE_ARCH}-unknown-openbsd6.1 sh " app/xlockmore/Makefile.bsd-wrapper
  54. rep "exec sh " "build_alias=\${MACHINE_ARCH}-unknown-openbsd6.1 exec sh " share/mk/bsd.xorg.mk
  55. apply