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.a $tmp1' EXIT
 6trap 'exit $?' HUP INT TERM
 7
 8tmp1=tmp1.$$
 9
10############################################################################
11#print all members
12
13cp master.a file.a
14
15$EXEC scc ar -p file.a file1 file2 file3 >$tmp1
16diff $tmp1 - <<EOF
17This is the first file,
18and it should go in the
19first position in the archive.
20But this other one is the second one,
21and it shouldn't go in the first position
22because it should go in the second position.
23and at the end, this is the last file
24that should go at the end of the file,
25thus it should go in the third position.
26EOF