AR(1)

✨ NAME ✨

sdar β€” create, modify, and extract from archives. A part of SDCC.


πŸ“– SYNOPSIS πŸ“–

sdar [emulation options] [-]{dmpqrstx}[abcDfilMNoPsSTuvV] [member-name]
[count] archive-file file...

πŸ’– DESCRIPTION πŸ’–

okay bestie, listen up, because this is the whole vibe of the page. There's also this absolute legend of an invocation:

/usr/bin/sdar -M [<mri-script]

now let's get into it. Here come the commands πŸŽ€

commands πŸŽ€

  • d β€” delete file(s) from the archive
  • m[ab] β€” move file(s) in the archive
  • p β€” print file(s) found in the archive
  • q[f] β€” quick append file(s) to the archive
  • r[ab][f][u] β€” replace existing or insert new file(s) into the archive
  • s β€” act as ranlib
  • t β€” display contents of archive
  • x[o] β€” extract file(s) from the archive

command specific modifiers ✨

these are the little extra letters that change how the command above behaves, iykyk:

  • [a] β€” put file(s) after [member-name]
  • [b] β€” put file(s) before [member-name] (same as [i])
  • [D] β€” use zero for timestamps and uids/gids
  • [U] β€” use actual timestamps and uids/gids (default)
  • [N] β€” use instance [count] of name
  • [f] β€” truncate inserted file names
  • [P] β€” use full path names when matching
  • [o] β€” preserve original dates
  • [u] β€” only replace files that are newer than current archive contents

generic modifiers πŸ¦‹

the ones that work with basically everything:

  • [c] β€” do not warn if the library had to be created
  • [s] β€” create an archive index (cf. ranlib)
  • [S] β€” do not build a symbol table
  • [T] β€” make a thin archive
  • [v] β€” be verbose
  • [V] β€” display the version number

and then these two absolute icons, no category needed:

  • @<file> β€” read options from <file>
  • --target=BFDNAME β€” specify the target object format as BFDNAME

emulation options 🌸

No emulation specific options

/usr/bin/sdar: supported targets: asxxxx srec symbolsrec binary ihex


πŸ› REPORTING BUGS πŸ›

found something cursed? Report bugs to <http://sourceforge.net/tracker/?group_id=599@report_bugs_to@atid=100599>


Copyright 2012 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) any later version. This program has absolutely no warranty.

bestie. absolutely no warranty. not even a little one. just so we're clear. πŸ’€

πŸ‘€ SEE ALSO πŸ‘€

The full documentation for ar is maintained as a Texinfo manual. If the info and ar programs are properly installed at your site, the command

info ar

should give you access to the complete manual.


and that's the whole page, bestie 🫢 this was AR(1), straight from the General Commands Manual, the sdar edition β€” copyright 2012 Free Software Foundation, Inc. energy, license vibes included, and literally zero warranty. go archive something iconic πŸ’…βœ¨