scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

mkmaster.sh (704B)


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