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#and now with no members in command line
11cp master.a file.a
12
13$EXEC scc ar -p file.a > $tmp1
14diff -u $tmp1 - <<EOF
15This is the first file,
16and it should go in the
17first position in the archive.
18But this other one is the second one,
19and it shouldn't go in the first position
20because it should go in the second position.
21and at the end, this is the last file
22that should go at the end of the file,
23thus it should go in the third position.
24EOF