Commits

Xu Xiaodong  committed cbb491e

minor update for fix_java_font.pl

  • Participants
  • Parent commits e9ca348

Comments (0)

Files changed (1)

File fix_java_font.pl

 my ($jre_ver)
     = qx(eix -I --format '<installedversions:NAMEVERSION>' sun-jre-bin)
     =~ m!/(.*)\Z!;
-my $jre_path = "/opt/$jre_ver/lib/fonts/";
+my $jre_path = "/opt/$jre_ver/lib/fonts/fallback";
 
+mkdir $jre_path unless -e $jre_path;
 chdir $jre_path;
-mkdir 'fallback';
-chdir 'fallback';
 symlink '/usr/share/fonts/ttf-droid/DroidSansFallback.ttf',
     'DroidSansFallback.ttf';
 system 'mkfontdir';