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 doesn't exist and using -b
12
13echo First > file-1
14
15cp master.a file.a
16$EXEC scc ar -rv -b file1 file.a file-1
17
18$EXEC scc ar -p file.a file-1 > $tmp1
19diff -u $tmp1 - <<EOF
20First
21EOF
22
23$EXEC scc ar -t file.a > $tmp1
24diff -u $tmp1 - <<EOF
25file-1
26file1
27file2
28file3
29EOF