#!/usr/bin/perl # $FreeBSD$ $prefix = $ENV{'PKG_PREFIX'}; $dir = "$prefix/lib/X11/fonts/local"; $to = "$dir/fonts.alias"; $from = "$to.orig"; rename($to, $from) || die("Can't rename: $!"); open(IN, $from) || die("Can't open $from: $!"); open(OUT, ">$to") || die("Can't open $to: $!"); while () { chop; if (/^\s*!/ || /^\s*$/) { print OUT "$_\n"; } else { @line = split(/\s+/, $_); @elm = split(/-+/, $line[0]); if ($elm[1] ne 'alias') { print OUT "$_\n"; } } } #system("$prefix/bin/xset fp rehash"); t.com.tw/~lantw44/git/freebsd-ports-gnome' title='freebsd-ports-gnome Git repository'/>
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* Mega-patch to cleanup the ports infrastructure regarding our linux bits:netchild2005-06-182-7/+7
* Respect the user's USE_LINUX setting.trevor2005-03-021-1/+1
* Say hello to the linux mega patch, it consolidates our linux bits anetchild2005-01-011-0/+2
* Remove deprecated USE_SIZElioux2004-12-251-1/+0
* USE_SIZEifylioux2004-02-082-0/+2
* De-pkg-commentlioux2003-02-24