Shell script to prepare a source distribution archive.
[sgt/puzzles] / makedist.sh
CommitLineData
54e5d4e7 1#!/bin/sh
2
3perl mkfiles.pl
4
5mkdir tmp.$$
6mkdir tmp.$$/puzzles
7
8for i in *.c *.h LICENCE README Recipe mkfiles.pl Makefile.*; do
9 ln -s ../../$i tmp.$$/puzzles
10done
11
12tar -C tmp.$$ -chzvf - puzzles > ../puzzles.tar.gz
13
14rm -rf tmp.$$