#
# This file is part of DisOrder.
-# Copyright (C) 2006, 2007 Richard Kettlewell
+# Copyright (C) 2006-2008 Richard Kettlewell
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
images.h: $(PNGS)
exec > @$.new; \
for png in $(PNGS); do \
- name=`echo $$png | sed 's,.*/,,;s,\.png,,;'`; \
+ name=`echo $$png | $(GNUSED) 's,.*/,,;s,\.png,,;'`; \
gdk-pixbuf-csource --raw --name=image_$$name $$png; \
done; \
echo "static const struct image images[] = {"; \
for png in $(PNGS); do \
- name=`echo $$png | sed 's,.*/,,;s,\.png,,;'`; \
+ name=`echo $$png | $(GNUSED) 's,.*/,,;s,\.png,,;'`; \
echo " { \"$$name.png\", image_$$name },"; \
done; \
echo "};"
# check everything has working --help
check-help: all
- ./disobedience --version > /dev/null
+ unset DISPLAY;./disobedience --version > /dev/null
+ unset DISPLAY;./disobedience --help > /dev/null
+
+export GNUSED