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#no members
10cp master.a file.a
11
12last=`ls -l file.a | awk '{print $6,$7,$8}'`
13
14if ! $EXEC scc ar -dv file.a
15then
16	echo ar returned with error when no members
17	exit 1
18fi
19
20now=`ls -l file.a | awk '{print $6,$7,$8}'`
21if test "$now" != "$last"
22then
23	echo empty ar -d modified the archive >&2
24	exit 1
25fi