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#Append generated files at once to an empty archive
12
13echo First > file1
14echo Second > file2
15echo Third > file3
16
17rm -f file.a
18$EXEC scc ar -qv file.a file1 file2 file3
19
20$EXEC scc ar -t file.a > $tmp1
21diff -u $tmp1 - <<EOF
22file1
23file2
24file3
25EOF
26
27$EXEC scc ar -p file.a > $tmp1
28diff -u $tmp1 - <<EOF
29First
30Second
31Third
32EOF