#
# makefile for `ski'
#
-# Note: There is also a version variable in ski itself.
-VERS=$(shell sed <ski.spec -n -e '/Version: \(.*\)/s//\1/p')
+VERS=$(shell sed <ski -n -e '/version=\(.*\)/s//\1/p')
-SOURCES = README COPYING ski ski.xml ski.6 Makefile ski.spec
+SOURCES = README COPYING NEWS ski ski.xml ski.6 Makefile control ski.png
all: ski.6
@-pychecker --only --limit 50 ski.py
@rm -f ski.py*
+version:
+ @echo $(VERS)
+
ski-$(VERS).tar.gz: $(SOURCES)
@ls $(SOURCES) | sed s:^:ski-$(VERS)/: >MANIFEST
@(cd ..; ln -s ski ski-$(VERS))
--- /dev/null
+* Wed Nov 24 2010 Eric S. Raymond <esr@snark.thyrsus.com> 6.7
+- Fix a minor bug revealed by pychecker.
+
+* Wed Oct 20 2010 Eric S. Raymond <esr@snark.thyrsus.com> 6.6
+- License changed to BSD.
+- Documentation fixes.
+
+* Mon Jan 12 2004 Eric S. Raymond <esr@snark.thyrsus.com> 6.5
+- 6.4 introduced a bug into the ? and ! commands, now fixed.
+
+* Sun Jan 11 2004 Eric S. Raymond <esr@snark.thyrsus.com> 6.4
+- Game commands now accept numeric repeat prefixes.
+
+* Sat Jan 3 2004 Eric S. Raymond <esr@snark.thyrsus.com> 6.3
+- Fix bug introduced to teleport command in 6.2.
+
+* Tue Dec 31 2003 Eric S. Raymond <esr@snark.thyrsus.com> 6.2
+- Emit reset on keyboard interrupt, just in case user bails out in the
+ middle af a row refresh. Fix bug in ! command interpretation.
+ Terrain key is now colorized.
+
+* Tue Dec 30 2003 Eric S. Raymond <esr@snark.thyrsus.com> 6.1
+- Python reimplementation of the original C game.
--- /dev/null
+# This is not a real Debian control file, though the syntax is compatible
+# It's project metadata for the shipper tool
+
+Package: ski
+
+Description: a hotdogging game, evade the deadly Yeti on your jet-powered skis
+ Imagine you are skiing down an infinite slope, facing such hazards as
+ trees, ice, bare ground, and the man-eating Yeti! Unfortunately,
+ you have put your jet-powered skis on backwards, so you can't see
+ ahead where you are going; only behind where you have been. However,
+ you can turn to either side, jump or hop through the air, teleport
+ through hyperspace, launch nuclear ICBMs, and cast spells to call the
+ Fire Demon. And since the hazards occur in patches, you can
+ skillfully outmaneuver them. A fun and very silly game that proves
+ you don't need fancy graphical user interfaces to have a good time.
+
+Homepage: http://www.catb.org/~esr/ski
+
+XBS-Logo: ski.png
+
+XBS-Project-Tag-List: games
+++ /dev/null
-Name: ski
-Version: 6.7
-Release: 1
-URL: http://www.catb.org/~esr/ski/
-Source0: %{name}-%{version}.tar.gz
-License: BSD
-Group: Games
-Summary: a hotdogging game, evade the deadly Yeti on your jet-powered skis
-BuildRoot: %{_tmppath}/%{name}-root
-BuildArch: noarch
-#Keywords: game, solitaire
-#Logo: ski.png
-
-%description
-Imagine you are skiing down an infinite slope, facing such hazards as
-trees, ice, bare ground, and the man-eating Yeti! Unfortunately,
-you have put your jet-powered skis on backwards, so you can't see
-ahead where you are going; only behind where you have been. However,
-you can turn to either side, jump or hop through the air, teleport
-through hyperspace, launch nuclear ICBMs, and cast spells to call the
-Fire Demon. And since the hazards occur in patches, you can
-skillfully outmaneuver them. A fun and very silly game that proves
-you don't need fancy graphical user interfaces to have a good time.
-
-%prep
-%setup -q
-
-%build
-make %{?_smp_mflags} ski.6
-
-%install
-[ "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"
-mkdir -p "$RPM_BUILD_ROOT"%{_bindir}
-mkdir -p "$RPM_BUILD_ROOT"%{_mandir}/man6/
-cp ski "$RPM_BUILD_ROOT"%{_bindir}
-cp ski.6 "$RPM_BUILD_ROOT"%{_mandir}/man6/
-
-%clean
-[ "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"
-
-%files
-%doc README COPYING
-%defattr(-,root,root,-)
-%{_mandir}/man6/ski.6*
-%{_bindir}/ski
-
-%changelog
-* Wed Nov 24 2010 Eric S. Raymond <esr@snark.thyrsus.com> 6.7-1
-- Fix a minor bug revealed by pychecker.
-
-* Wed Oct 20 2010 Eric S. Raymond <esr@snark.thyrsus.com> 6.6-1
-- License changed to BSD.
-- Documentation fixes.
-
-* Mon Jan 12 2004 Eric S. Raymond <esr@snark.thyrsus.com> 6.5-1
-- 6.4 introduced a bug into the ? and ! commands, now fixed.
-
-* Sun Jan 11 2004 Eric S. Raymond <esr@snark.thyrsus.com> 6.4-1
-- Game commands now accept numeric repeat prefixes.
-
-* Sat Jan 3 2004 Eric S. Raymond <esr@snark.thyrsus.com> 6.3-1
-- Fix bug introduced to teleport command in 6.2.
-
-* Tue Dec 31 2003 Eric S. Raymond <esr@snark.thyrsus.com> 6.2
-- Emit reset on keyboard interrupt, just in case user bails out in the
- middle af a row refresh. Fix bug in ! command interpretation.
- Terrain key is now colorized.
-
-* Tue Dec 30 2003 Eric S. Raymond <esr@snark.thyrsus.com> 6.1
-- Python reimplementation of the original C game.
-
-