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
760d73ef
Commit
760d73ef
authored
15 years ago
by
Claus-Justus Heine
Browse files
Options
Downloads
Patches
Plain Diff
More tweaks for OS X.
parent
3fc531cb
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
+18
-15
18 additions, 15 deletions
mksnap.sh
with
18 additions
and
15 deletions
mksnap.sh
+
18
−
15
View file @
760d73ef
...
...
@@ -3,24 +3,27 @@
# 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
:-
/disk1/claus/tmp
}
/alberta.
$$
"
SVNREPOS
=
https://scwww.math.uni-augsburg.de/repos/alberta
PATH
=
/opt/local/bin:
$PATH
export
PATH
MYTMPDIR
=
"
${
TMPDIR
:-
/Volumes/DataHD/Shared/software/ALBERTA/snapshots
}
/alberta.
$$
"
SVNREPOS
=
https://imperium.math.uni-duisburg.de/alberta/subversion
ALBERTADIST
=
trunk/albertadist
DATE
=
$(
date
-
-utc
'+%Y%m%d'
)
SNAPSHOTDIR
=
/
hosts/www/www/htdocs/IAM/homepages/claus/download/alberta
/snapshots
DATE
=
$(
date
-
u
'+%Y%m%d'
)
SNAPSHOTDIR
=
/
Volumes/DataHD/Shared/software/ALBERTA
/snapshots
NSNAPSHOTS
=
10
# keep only the most recent 10 snapshots
test
-d
${
TMPDIR
}
||
mkdir
-p
${
TMPDIR
}
# 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
#
: ${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
#
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 -R u+rwX
${
MYTMPDIR
}
; rm -rf
${
MYTMPDIR
}
"
0
...
...
@@ -30,7 +33,7 @@ svn co ${SVNREPOS}/${ALBERTADIST} albertadist
cd
albertadist
# own revision
HEADREV
=
`
svn info|awk
'/Revision:/ { print $2; }'
`
LASTREV
=
`
{
ls
-C1
--color
=
no
${
SNAPSHOTDIR
}
/
*
.gz
||
true
;
}
|tail
-n
1|cut
-d
'-'
-f
3|cut
-d
'.'
-f
1
`
LASTREV
=
`
{
ls
-C1
${
SNAPSHOTDIR
}
/
*
.gz
||
true
;
}
|tail
-n
1|cut
-d
'-'
-f
3|cut
-d
'.'
-f
1
`
if
test
-n
"
${
LASTREV
}
"
;
then
# figure out if anything has changed.
for
i
in
.
alberta alberta_util demo add_ons doc
;
do
...
...
@@ -54,7 +57,7 @@ fi
# attach the time-stamp to the package
#
VERSTAMP
=
"
${
DATE
}
-
${
HEADREV
}
"
sed
-i
-e
's/AC_INIT(\[alberta\], [^,]
\+
,/AC_INIT([alberta], ['
"
${
VERSTAMP
}
"
'],/g'
configure.ac
sed
-i
""
-e
's/AC_INIT(\[alberta\], [^,]
*
,/AC_INIT([alberta], ['
"
${
VERSTAMP
}
"
'],/g'
configure.ac
./fromsvnreconf.sh
./configure
--enable-maintainer-mode
||
exit
1
make
||
exit
1
...
...
@@ -64,7 +67,7 @@ if test -f "alberta-${VERSTAMP}.tar.bz2" -a \
-f
"alberta-
${
VERSTAMP
}
.tar.gz"
;
then
mkdir
-p
${
SNAPSHOTDIR
}
||
true
cp
alberta-
${
VERSTAMP
}
.tar.bz2 alberta-
${
VERSTAMP
}
.tar.gz
${
SNAPSHOTDIR
}
rm
-f
`
ls
--color
=
no
-C1
${
SNAPSHOTDIR
}
/
*
.tar.gz|head
-n
-
${
NSNAPSHOTS
}
`
rm
-f
`
ls
--color
=
no
-C1
${
SNAPSHOTDIR
}
/
*
.tar.bz2|head
-n
-
${
NSNAPSHOTS
}
`
rm
-f
`
ls
-C1
${
SNAPSHOTDIR
}
/
*
.tar.gz|head
-n
-
${
NSNAPSHOTS
}
`
rm
-f
`
ls
-C1
${
SNAPSHOTDIR
}
/
*
.tar.bz2|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