scc

A fork of https://git.simple-cc.org/scc/ for Qute

git clone https://git.8pit.net/scc.git

 1#!/bin/sh
 2
 3set -e
 4
 5trap 'rm -f file* $tmp1' EXIT
 6trap 'exit $?' HUP INT TERM
 7
 8tmp1=tmp1.$$
 9
10############################################################################
11#Update one member that already exist
12
13echo First > file1
14
15cp master.a file.a
16sleep 1
17touch file1
18$EXEC scc ar -ruv file.a file1
19
20$EXEC scc ar -p file.a file1 > $tmp1
21diff -u $tmp1 - <<EOF
22First
23EOF
24
25echo Second > file1
26touch -t 197001010000 file1
27$EXEC scc ar -ruv file.a file1
28
29$EXEC scc ar -p file.a file1 > $tmp1
30diff -u $tmp1 - <<EOF
31First
32EOF