Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
alberta3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ians-nmh-siebert
alberta
alberta3
Commits
0dade65d
Commit
0dade65d
authored
18 years ago
by
Claus-Justus Heine
Browse files
Options
Downloads
Patches
Plain Diff
Snapshot script.
parent
4956ae8c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mksnap.sh
+41
-0
41 additions, 0 deletions
mksnap.sh
with
41 additions
and
0 deletions
mksnap.sh
0 → 100755
+
41
−
0
View file @
0dade65d
#! /bin/sh
# Generate a snapshot from svn. This script tries to check-out a new
# copy from svn, and then run "autoreconf" and "make distcheck".
MYTMPDIR
=
"
${
TMPDIR
:-
/tmp
}
/alberta2.
$$
"
SVNREPOS
=
svn+ssh://malaga.math.uni-augsburg.de/homes/proj/alberta/ALBERTA_SVN
ALBERTADIST
=
trunk/albertadist
DATE
=
$(
date
'+%Y%m%d'
)
SNAPSHOTDIR
=
/hosts/www/www/htdocs/IAM/homepages/claus/alberta/snapshots
NSNAPSHOTS
=
10
# keep only the most recent 10 snapshots
# Pray that we have a running ssh-agent (and only one ...)
SSH_AGENT_PID
=
`
ps
-u
claus |grep ssh-agent|awk
'{ print $1; }'
`
SSH_AUTH_SOCK
=
`
find /tmp
-user
claus
-name
"agent.[0-9]*"
`
export
SSH_AGENT_PID SSH_AUTH_SOCK
if
test
-z
"
${
SSH_AGENT_PID
}
"
-o
-z
"
${
SSH_AUTH_SOCK
}
"
;
then
echo
"No running ssh-agent found"
1>&2
exit
1
fi
trap
"chmod -
$
u+rwX
${
MYTMPDIR
}
; rm -rf
${
MYTMPDIR
}
"
0
mkdir
-p
"
${
MYTMPDIR
}
"
cd
"
${
MYTMPDIR
}
"
svn co
${
SVNREPOS
}
/
${
ALBERTADIST
}
albertadist
cd
albertadist
#
# attach the time-stamp to the package
#
sed
-i
-e
's/AC_INIT([alberta2],[^,]\+,/AC_INIT([alberta2],['
"
${
DATE
}
"
'],/g'
configure.ac
./fromsvnreconf.sh
./configure
make distcheck
if
test
-f
"alberta2-
${
DATE
}
.tar.bz2"
-a
-f
"alberta2-
${
DATE
}
.tar.gz"
;
then
mkdir
-p
${
SNAPSHOTDIR
}
||
true
cp
alberta2-
${
DATE
}
.tar.bz2 geomview-
${
DATE
}
.tar.gz
${
SNAPSHOTDIR
}
rm
-f
`
ls
--color
=
no
-C1
${
SNAPSHOTDIR
}
/
*
.gz|head
-n
-
${
NSNAPSHOTS
}
`
chmod
-R
a+rX
${
SNAPSHOTDIR
}
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment