Changeset 780

Show
Ignore:
Timestamp:
03/14/08 11:40:56 (6 months ago)
Author:
takkaria
Message:

Add a better source-packaging script.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/scripts/pkg_src

    r749 r780  
    11#!/bin/sh 
    22 
    3 DIR=angband-3.0.9a 
    4 OUT=$DIR.tar.gz 
     3if [ $# -ne 1 ] && [ $# -ne 2 ]; then 
     4        echo "Simple packaging file for the source." 
     5        echo "" 
     6        echo "Use in the root directory of the game, like so:" 
     7        echo "   scripts/pkg_src <name of of release, e.g. angband-4.0.1> [<output filename>]" 
     8        echo "" 
     9 
     10        exit 1 
     11fi 
     12   
     13DIR=$1 
     14if [ $# -eq 1 ]; then 
     15        OUT=$1.tar.gz 
     16else 
     17        OUT=$2 
     18fi 
    519 
    620svn export . $DIR &&