FIXUPHACK 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #in variable PKGS_SPECS_TABLE, file DISTRO_PKGS_SPECS-*, be sure to have dev>exe:
  2. #yes|kbd|kbd|exe,dev>exe,doc,nls
  3. #keyboard layout script expects files to not be gzipped...
  4. FILESGZ="`find ./usr -type f -name \*.gz`"
  5. if [ "$FILESGZ" != "" ];then
  6. for ONEFILEGZ in $FILESGZ
  7. do
  8. gunzip $ONEFILEGZ
  9. done
  10. fi
  11. #120627 debian and gentoo have different path in usr/share...
  12. [ "`ls -1 usr/share/consolefonts`" = "" ] && rm -rf usr/share/consolefonts
  13. [ "`ls -1 usr/share/keymaps/i386`" = "" ] && rm -rf usr/share/keymaps/i386
  14. [ "`ls -1 usr/share/keymaps/include`" = "" ] && rm -rf usr/share/keymaps/include
  15. [ "`ls -1 usr/share/keymaps`" = "" ] && rm -rf usr/share/keymaps
  16. [ "`ls -1 usr/share/kbd/consolefonts`" = "" ] && rm -rf usr/share/kbd/consolefonts
  17. [ "`ls -1 usr/share/kbd/keymaps/i386`" = "" ] && rm -rf usr/share/kbd/keymaps/i386
  18. [ "`ls -1 usr/share/kbd/keymaps/include`" = "" ] && rm -rf usr/share/kbd/keymaps/include
  19. [ "`ls -1 usr/share/kbd/keymaps`" = "" ] && rm -rf usr/share/kbd/keymaps
  20. [ "`ls -1 usr/share/kbd`" = "" ] && rm -rf usr/share/kbd
  21. #120627 is it ok rename .kmap to .map, better for our scripts...
  22. FILESKMAP="`find ./usr/share -type f -name '*.kmap'`"
  23. if [ "$FILESKMAP" != "" ];then
  24. for ONEFILEKMAP in $FILESKMAP
  25. do
  26. xONEFILEKMAP="$(echo -n "$ONEFILEKMAP" | sed -e 's%\.kmap$%%')"
  27. rm ${xONEFILEKMAP}.kmap
  28. done
  29. fi