File: alias_sync

package info (click to toggle)
mercury 0.9-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 18,488 kB
  • ctags: 9,800
  • sloc: objc: 146,680; ansic: 51,418; sh: 6,436; lisp: 1,567; cpp: 1,040; perl: 854; makefile: 450; asm: 232; awk: 203; exp: 32; fortran: 3; csh: 1
file content (25 lines) | stat: -rwxr-xr-x 597 bytes parent folder | download | duplicates (2)
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
#!/bin/sh
# This script merges changes to the trunk into the alias branch of the
# compiler.  It should be executed from within the mercury/compiler/
# directory in a checked-out version of the alias branch.

sync_tag_file=.alias_trunk_sync_tag

if [ ! -f $sync_tag_file ]
then
    echo $sync_tag_file: file not found
    exit 1
fi

old_tag=`cat $sync_tag_file`
new_tag=trunk_snapshot_`date +%Y%m%d%H%M%S`
source_dir=mercury/compiler

echo old tag: $old_tag
echo new tag: $new_tag

cvs rtag $new_tag $source_dir
cvs update -j$old_tag -j$new_tag

rm -f $sync_tag_file
echo $new_tag >$sync_tag_file