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' EXIT
 6trap 'exit $?' HUP INT TERM
 7
 8############################################################################
 9#remove all the members
10
11cp master.a file.a
12$EXEC scc ar -dv file.a file1 file2 file3
13
14if $EXEC scc ar -tv file.a file2 file3
15then
16	echo file-1 file2 file were not deleted >&2
17	exit 1
18fi
19
20if test `$EXEC scc ar -t file.a | wc -l` -ne 0
21then
22	echo file.a is not empty after deleting all the members >&2
23	exit 1
24fi