]> git.ipfire.org Git - thirdparty/mdadm.git/blame - makedist
mdctl-v0.4.1
[thirdparty/mdadm.git] / makedist
CommitLineData
64c4757e
NB
1#!/bin/sh
2
3target=${1-~/public_html/source/mdctl}
4if [ -d $target ]
5then :
6else echo $target is not a directory
7 exit 2
8fi
9set `grep '^char Version' ReadMe.c `
682c7051
NB
10echo version = $7
11base=mdctl-$7.tgz
64c4757e
NB
12if [ -f $target/$base ]
13then
14 echo $target/$base exists.
15 exit 1
16fi
17trap "rm $target/$base; exit" 1 2 3
18( cd .. ; tar czvf - mdctl ) > $target/$base
19chmod a+r $target/$base
682c7051 20ls -l $target/$base