-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgen211git
More file actions
32 lines (26 loc) · 1002 Bytes
/
gen211git
File metadata and controls
32 lines (26 loc) · 1002 Bytes
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
#!/bin/sh
set -e
. vars
# Generate the git repo for the 2.11BSD project.
# Blow away old git repo
[ -d $GITREPO ] && clean_tree $GITREPO
mkdir -p $GITREPO
# Initialize the repo
chdir $GITREPO
git init
echo Patch-Level: -1 > PATCH-LEVEL
git checkout -b 211bsd
git add PATCH-LEVEL
git commit -m"2.11BSD history reconstruction project, initial empty commit"
# Copy the initial tree
# This list is ugly, but not all the src is under /usr/src
(cd $ROOT211; tar cf - GENALLSYS README VERSION dev etc \
usr/adm usr/lib usr/dict usr/doc usr/guest usr/hosts usr/include \
usr/pub usr/skel usr/spool usr/src) | tar xvf -
# Note: Patch-Level wasn't updated by each of the patches, especailly the early
# ones, but we use it to keep track of things and NOT bump it when we have
# 'discovered' patches that were rolled up into the 'checkpoints' we have but
# don't appear prior as an individual patch.
echo Patch-Level: 0 > PATCH-LEVEL
git add *
git commit -m"Import 2.11BSD, as released, as reconstructed"