mirror of
https://github.com/postgres/postgres.git
synced 2025-09-03 15:22:11 +03:00
Postgres95 1.01 Distribution - Virgin Sources
This commit is contained in:
20
src/tools/mkldexport/Makefile
Normal file
20
src/tools/mkldexport/Makefile
Normal file
@@ -0,0 +1,20 @@
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile.inc--
|
||||
# Makefile for tools/mkldexport
|
||||
#
|
||||
# Copyright (c) 1994, Regents of the University of California
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/tools/mkldexport/Attic/Makefile,v 1.1.1.1 1996/07/09 06:22:32 scrappy Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SHPROG=mkldexport
|
||||
|
||||
MKDIR= ../../mk
|
||||
include ../../Makefile.global
|
||||
include $(MKDIR)/postgres.mk
|
||||
|
||||
include $(MKDIR)/postgres.shell.mk
|
12
src/tools/mkldexport/README
Normal file
12
src/tools/mkldexport/README
Normal file
@@ -0,0 +1,12 @@
|
||||
mkldexport is a script for creating an AIX exports from an object file.
|
||||
|
||||
Usage:
|
||||
mkldexport objectfile [location]
|
||||
where
|
||||
objectfile is the current location of the object file.
|
||||
location is the eventual (installed) location of the
|
||||
object file (if different from the current
|
||||
working directory).
|
||||
|
||||
Written originally by Paul Aoki for postgres v4r2.
|
||||
|
36
src/tools/mkldexport/mkldexport.sh
Normal file
36
src/tools/mkldexport/mkldexport.sh
Normal file
@@ -0,0 +1,36 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# mkldexport
|
||||
# create an AIX exports file from an object file
|
||||
#
|
||||
# Usage:
|
||||
# mkldexport objectfile [location]
|
||||
# where
|
||||
# objectfile is the current location of the object file.
|
||||
# location is the eventual (installed) location of the
|
||||
# object file (if different from the current
|
||||
# working directory).
|
||||
#
|
||||
# /usr/local/devel/postgres-v4r2/src/tools/mkldexport/RCS/mkldexport.sh,v 1.2 1994/03/13 04:59:12 aoki Exp
|
||||
#
|
||||
CMDNAME=`basename $0`
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: $CMDNAME object [location]"
|
||||
exit 1
|
||||
fi
|
||||
OBJNAME=`basename $1`
|
||||
if [ "`basename $OBJNAME`" != "`basename $OBJNAME .o`" ]; then
|
||||
OBJNAME=`basename $OBJNAME .o`.so
|
||||
fi
|
||||
if [ -z "$2" ]; then
|
||||
echo '#!'
|
||||
else
|
||||
echo '#!' $2/$OBJNAME
|
||||
fi
|
||||
/usr/ucb/nm -g $1 | \
|
||||
egrep ' [TD] ' | \
|
||||
sed -e 's/.* //' | \
|
||||
egrep -v '\$' | \
|
||||
sed -e 's/^[.]//' | \
|
||||
sort | \
|
||||
uniq
|
Reference in New Issue
Block a user