summaryrefslogtreecommitdiff
path: root/security/nss/cmd/shlibsign
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>2003-03-21 03:48:11 +0000
committerwtc%netscape.com <devnull@localhost>2003-03-21 03:48:11 +0000
commitefd4baf685fa6c738fd56a2f7b9dbfe7fc02907e (patch)
treea432a5013628bfbbe53d7f5124ca5f12c7ca9a15 /security/nss/cmd/shlibsign
parent41ae1940d7923fc3765010c2f4cf27b5fcfc76c8 (diff)
downloadnss-hg-efd4baf685fa6c738fd56a2f7b9dbfe7fc02907e.tar.gz
Bug 198482: OS/2 can't run sign.sh because we can't set DLL load path in
a shell script. This patch is contributed by Michael Kaply <mkaply@us.ibm.com>. Modified Files: Makefile Added Files: sign.cmd
Diffstat (limited to 'security/nss/cmd/shlibsign')
-rw-r--r--security/nss/cmd/shlibsign/Makefile4
-rw-r--r--security/nss/cmd/shlibsign/sign.cmd18
2 files changed, 22 insertions, 0 deletions
diff --git a/security/nss/cmd/shlibsign/Makefile b/security/nss/cmd/shlibsign/Makefile
index 280b935b6..84b6129c4 100644
--- a/security/nss/cmd/shlibsign/Makefile
+++ b/security/nss/cmd/shlibsign/Makefile
@@ -106,7 +106,11 @@ include $(CORE_DEPTH)/coreconf/rules.mk
include ../platrules.mk
%.chk: %.$(DLL_SUFFIX)
+ifeq ($(OS_TARGET), OS2)
+ -exec sign.cmd $(DIST) $(OBJDIR) $(IS_WINDOWS) $<
+else
@sh ./sign.sh $(DIST) $(OBJDIR) $(IS_WINDOWS) $<
+endif
libs install :: $(CHECKLOC)
diff --git a/security/nss/cmd/shlibsign/sign.cmd b/security/nss/cmd/shlibsign/sign.cmd
new file mode 100644
index 000000000..e93b22c3b
--- /dev/null
+++ b/security/nss/cmd/shlibsign/sign.cmd
@@ -0,0 +1,18 @@
+/* Equivalent to sign.sh for OS/2 */
+PARSE ARG dist objdir iswindows therest
+dist=forwardtoback(dist);
+objdir=forwardtoback(objdir);
+'echo 'dist
+'echo 'objdir
+'set BEGINLIBPATH='dist'\lib'
+objdir'\shlibsign -v -i 'therest
+exit
+
+forwardtoback: procedure
+ arg pathname
+ parse var pathname pathname'/'rest
+ do while (rest <> "")
+ pathname = pathname'\'rest
+ parse var pathname pathname'/'rest
+ end
+ return pathname