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#extract without parameters
12
13cp master.a file.a
14$EXEC scc ar -xv file.a
15
16cat file1 file2 file3 > $tmp1
17diff -u $tmp1 - <<EOF
18This is the first file,
19and it should go in the
20first position in the archive.
21But this other one is the second one,
22and it shouldn't go in the first position
23because it should go in the second position.
24and at the end, this is the last file
25that should go at the end of the file,
26thus it should go in the third position.
27EOF
28
29if test `ls file? | wc -l` -ne 3
30then
31	echo some error extracting files
32	exit 1
33fi