File: initlib.sh

package info (click to toggle)
librcsb-core-wrapper 1.005-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 16,420 kB
  • ctags: 3,504
  • sloc: xml: 122,915; cpp: 25,250; ansic: 3,737; makefile: 1,033; sh: 784; lex: 294; yacc: 235; perl: 213; python: 121; csh: 30
file content (19 lines) | stat: -rwxr-xr-x 441 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
#
#  File:  initlib.sh
#
#  Purpose: Create the aggregate library if it is not already present.
#
#  Input: The library which is copied to the aggregate library, if aggregate
#    library is to be created.

AGGREGATE_LIB=all.a

if [ -f ${AGGREGATE_LIB} ]
then
#   Just a dummy statement to simply fill in the "then" part
    test ${AGGREGATE_LIB}
else
#   Copy the input file to the aggregate library
    cp $1 ${AGGREGATE_LIB}
fi