-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathimport
executable file
·99 lines (85 loc) · 1.64 KB
/
import
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#!/bin/sh
# (C) 2008 Guy Hulbert <[email protected]>
set -e
ROOT=$HOME/x
PROG='awb'
# save paths from ROOT since we redefine ROOT when testing
CVS=$ROOT/ar/awb
SRC=$ROOT/gh
DIR=$1
if [ -z "$DIR" ]
then
echo Usage: $0 DIR
exit 1
fi
shift
if [ $DIR == $PROG ]
then
echo "Final Build $PROG in $ROOT"
else
echo "Testing ... $PROG setup in ./$DIR"
ROOT=`pwd`
fi
BUILD=$ROOT/$DIR
if [ -d $BUILD ]
then
echo "DIR $DIR exists under $ROOT ... bye."
exit 0
fi
SUB='doc'
SRC=$SRC/$PROG
mkdir -p $BUILD
cd $BUILD
cat > README <<EOF
This is Jared Henley's awb. The latest copyright is:
Copyright 2007, 2008 Jared Henley <[email protected]>
The license is GPL v2, see COPYING.
Git repo created by Guy Hulbert from files:
awb-0.1.tar.gz
awb-0.1.1.tar.gz
awb-0.2.tar.gz
awb-0.2.1.tar.bz2
awb-0.2.4.tar.bz2
awb-0.2.2.tar.bz2
(obtained from a sourceforge mirror) by running the 'import' script.
EOF
git init
git add .
git commit -m "Initialized."
if [ $DIR == $PROG ]
then
cp -rp $SRC/$SUB .
git add $SUB
git commit -m "doc"
fi
for v in 0.1 0.1.1 0.2
do
tar zxf $CVS/awb-$v.tar.gz
x=$v
if [ $v == '0.2' ]
then
x=tarball
fi
mv -f awb-$x/* .
rmdir awb-$x
git add awb COPYING manual.txt manual.html
git commit -m "imported version $v"
git tag $v
done
for v in 0.2.1 0.2.2 0.2.4
do
tar jxf $CVS/awb-$v.tar.bz2
mv -f awb-$v/* .
rmdir awb-$v
git add awb COPYING manual.txt manual.html
git commit -m "imported version $v"
git tag $v
done
cp $SRC/import .
git add import
git commit -m "copied import script to git archive"
#
# Text for http://awb.cotef.net/
# cd $SRC/$SUB
# make text
#