chiark / gitweb /
build system
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 8 Jan 2012 17:06:50 +0000 (17:06 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 8 Jan 2012 17:06:50 +0000 (17:06 +0000)
.gitignore
Makefile
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control
debian/rules [new file with mode: 0755]
update-xfonts-traditional [moved from utility with 97% similarity]

index ba4dfe1..c3cdc9b 100644 (file)
@@ -1,6 +1,15 @@
 *~
+
 bad/*.bdf
 good/*.bdf
 rules/*.rules
 rules/foundries
 rules/foundries.new
+
+update-xfonts-traditional.sedded
+
+debian/files
+debian/debhelper.log
+debian/xfonts-traditional
+debian/xfonts-traditional.substvars
+debian/xfonts-traditional.debhelper.log
index f447dfc..2b9b1bf 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,23 @@
 SHELL=/bin/bash
 
+prefix?=/usr/local
+
+package=xfonts-traditional
+utility=update-$(package)
+
+install=install -m 755 -o 0 -g 0
+
+default: all
+
+all:
+       ./mkrules <specs
+
+install:
+       perl -pe 's#^(our \$$prefix=").*("\;\s*)$$#$$1$(prefix)$$2#' \
+               <$(utility) >$(utility).sedded
+       $(install) -d $(DESTDIR)$(prefix)/{bin,share/$(package)/rules}
+       $(install) $(utility).sedded $(DESTDIR)$(prefix)/bin/$(utility)
+
 clean:
        rm -f rules/*.rules
        rm -f good/*.bdf bad/*.bdf
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..2695464
--- /dev/null
@@ -0,0 +1,6 @@
+xfonts-traditional (1.0) unstable; urgency=low
+
+  * Initial release.
+
+ -- Ian Jackson <ian@liberator.relativity.greenend.org.uk>  Sun, 08 Jan 2012 16:51:02 +0000
+
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..45a4fb7
--- /dev/null
@@ -0,0 +1 @@
+8
index 37e50bf..77dc51f 100644 (file)
@@ -1,4 +1,12 @@
+Source: xfonts-traditional
+Maintainer: Ian Jackson <ijackson@chiark.greenend.org.uk>
+Section: x11
+Priority: optional
+Standards-Version: 3.9.2.0
+Build-Depends: xfonts-utils, pcf2bdf
+
 Package: xfonts-traditional
+Architecture: all
 Depends: xfonts-utils, pcf2bdf
 Description: Traditional fixed-with fonts for X
  Provides "traditional" versions of fixed-width fonts.
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..a8f4f0e
--- /dev/null
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+prefix=/usr
+export prefix
+
+%:
+       dh $@
similarity index 97%
rename from utility
rename to update-xfonts-traditional
index f03b771..1daa70c 100755 (executable)
--- a/utility
@@ -4,8 +4,10 @@ use POSIX;
 use IO::File;
 use Getopt::Long;
 
+our $prefix="/usr/local";
 our $package='xfonts-traditional';
-our $sharedir="/usr/share/$package";
+our $sharedir="$prefix/share/$package";
+our @fontsdirs=qw(/usr/share/fonts/X11 /usr/local/share/fonts/X11);
 our @rulespath;
 our $mode;
 our %foundrymap;