File: staticlib

package info (click to toggle)
librandombytes 0~20240318-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 328 kB
  • sloc: ansic: 411; python: 340; sh: 137; makefile: 23
file content (9 lines) | stat: -rwxr-xr-x 150 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
#!/bin/sh

lib="$1"
shift

rm -f package/lib/"$lib".a
ar cr package/lib/"$lib".a "$@"
ranlib package/lib/"$lib".a || :
chmod 644 package/lib/"$lib".a