diff options
Diffstat (limited to 'ldap/cm/ntpack.sh')
-rw-r--r-- | ldap/cm/ntpack.sh | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/ldap/cm/ntpack.sh b/ldap/cm/ntpack.sh new file mode 100644 index 00000000..b99f87ee --- /dev/null +++ b/ldap/cm/ntpack.sh @@ -0,0 +1,76 @@ +#!/bin/sh +# +# BEGIN COPYRIGHT BLOCK +# Copyright 2001 Sun Microsystems, Inc. +# Portions copyright 1999, 2001-2003 Netscape Communications Corporation. +# All rights reserved. +# END COPYRIGHT BLOCK +# + +####################################################################### +# +# Script to pack ldapsdk on NT (uses rtpatch) +# +# Mahesh Purswani (3/97) +####################################################################### + +# Path to the rtpatch installation +RTPATCH=/rtpatch + +outfile=outname +reldir=. +olddir=/nonedir +while [ $# -gt 0 ] +do + case "$1" in + -o) + shift + outfile=$1;; + -r) + shift + reldir=$1;; + *) + echo "" + echo "Usage: $0 [-o outfile] [-r sourcedir]" + echo "" + exit 1;; + esac + shift +done + +if [ ! -d "$olddir" ] ; then + echo "Making empty old directory $olddir" + mkdir $olddir +fi + +rolddir=`echo $olddir | sed 's#/#\\\\#g'` +rreldir=`echo $reldir | sed 's#/#\\\\#g'` + +cat <<EOF > pack.txt +OLDDIR $rolddir /F +NEWDIR $rreldir /F +OUTPUT $outfile +FILE *.* +PATCHFILE +LONGNAMES +PARTIAL +SUBDIRSEARCH +NOPATHSEARCH +IGNOREMISSING +EOF + +cat <<EOF > bind.txt +[General] +Platform=Console32 +DirectoryPrompt=Please specify install directory (default is current directory): +IncludeDLL=1 +PatchFile=$outfile.rtp +OutputFile=$outfile.exe +EOF + +# Run rtpatch +$RTPATCH/pbld-nt @pack.txt +$RTPATCH/pbind bind.txt + +echo "Packed release dir = $reldir" +echo "To outfile = $outfile" |