scc

A fork of https://git.simple-cc.org/scc/ for Qute

git clone https://git.8pit.net/scc.git

 1#!/bin/sh
 2
 3uid=`id -u`
 4gid=`id -g`
 5time=315532800
 6
 7cat <<EOF >master.a
 8!<arch>
 9file1           `printf "%-12d" $time``printf "%-6d" $uid``printf "%-6d" $gid`100644  79        \`
10This is the first file,
11and it should go in the
12first position in the archive.
13
14file2           `printf "%-12d" $time``printf "%-6d" $uid``printf "%-6d" $gid`100644  125       \`
15But this other one is the second one,
16and it shouldn't go in the first position
17because it should go in the second position.
18
19file3           `printf "%-12d" $time``printf "%-6d" $uid``printf "%-6d" $gid`100644  118       \`
20and at the end, this is the last file
21that should go at the end of the file,
22thus it should go in the third position.
23EOF