kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

07-replace-duplicate-inputs.sh (451B)


      1 # Match llvm-ar duplicate basename behavior: `r` replaces existing matching
      2 # members in order, then appends duplicate inputs once old matches are exhausted.
      3 
      4 mkdir one two
      5 printf 'aaaa'   > one/a.o
      6 printf 'bbbbbb' > two/a.o
      7 
      8 "$KIT" ar rcs lib.a one/a.o two/a.o
      9 echo "== fresh duplicate rcs =="
     10 "$KIT" ar tv lib.a
     11 
     12 printf 'AA'  > one/a.o
     13 printf 'BBB' > two/a.o
     14 "$KIT" ar rvs lib.a one/a.o two/a.o
     15 echo "== replace duplicate rvs =="
     16 "$KIT" ar tv lib.a