File: update-website

package info (click to toggle)
xxdiff 1%3A4.0.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,716 kB
  • ctags: 2,245
  • sloc: cpp: 18,495; python: 6,134; sh: 1,543; ansic: 1,535; perl: 308; lex: 284; yacc: 279; lisp: 250; tcl: 213; makefile: 82
file content (28 lines) | stat: -rwxr-xr-x 685 bytes parent folder | download | duplicates (8)
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
#!/bin/sh
#
# $Id: update-website 690 2003-12-26 01:26:36Z blais $
#

# Simple script that helps me remember how to update the sourceforge website.

# create temp directory
TMPDIR=/tmp/xxdiff-website
mkdir $TMPDIR
cd $TMPDIR

# export a copy
CVS_RSH=ssh
export CVS_RSH
cvs -z3 -d:ext:blais@vor.iro.umontreal.ca:/u/blais/cvsroot \
   export -r HEAD xxdiff

# compress it
tar jcvf xxdiff.tar.bz2 xxdiff

# copy over to account
scp xxdiff.tar.bz2 shell.sourceforge.net:/home/groups/x/xx/xxdiff/tmp

# uncompress it
ssh shell.sourceforge.net '( cd /home/groups/x/xx/xxdiff ; mv xxdiff xxdiff.old ; tar jxvf tmp/xxdiff.tar.bz2 ; rm -rf tmp/xxdiff.old ; mv xxdiff.old tmp )'

rm -rf $TMPDIR