File wcc-0.0.2-paths.patch of Package wcc
Index: wcc-0.0.2/src/wsh/Makefile
===================================================================
--- wcc-0.0.2.orig/src/wsh/Makefile
+++ wcc-0.0.2/src/wsh/Makefile
@@ -33,7 +33,7 @@ deepclean:
install::
mkdir -p $(DESTDIR)/usr/share/wcc/
cp -r ./scripts $(DESTDIR)/usr/share/wcc/
- cp wsh $(DESTDIR)/usr/bin/wsh
+ cp wsh $(DESTDIR)/usr/bin/
uninstall::
rm -rf $(DESTDIR)/usr/share/wcc/
Index: wcc-0.0.2/src/wcc/Makefile
===================================================================
--- wcc-0.0.2.orig/src/wcc/Makefile
+++ wcc-0.0.2/src/wcc/Makefile
@@ -40,7 +40,8 @@ clean:
rm -f wcc a.out wcc.o core wcc32 ls.o ls.so
install:
- cp wcc $(DESTDIR)/usr/bin/wcc
+ mkdir -p $(DESTDIR)/usr/bin/
+ cp wcc $(DESTDIR)/usr/bin/
# cp wcc32 $(DESTDIR)/usr/bin/wcc32
uninstall:
Index: wcc-0.0.2/src/wsh/scripts/md5.wsh
===================================================================
--- wcc-0.0.2.orig/src/wsh/scripts/md5.wsh
+++ wcc-0.0.2/src/wsh/scripts/md5.wsh
@@ -1,4 +1,4 @@
-#!/home/jonathan/solution-exp/unlinking/awareness/self/wcc/src/wsh/wsh
+#!/usr/bin/wsh
-- Computing a MD5 sum using cryptographic functions from foreign binaries (eg: sshd/OpenSSL)
Index: wcc-0.0.2/src/wsh/scripts/read.wsh
===================================================================
--- wcc-0.0.2.orig/src/wsh/scripts/read.wsh
+++ wcc-0.0.2/src/wsh/scripts/read.wsh
@@ -1,4 +1,4 @@
-#!/home/jonathan/solution-exp/unlinking/awareness/self/wcc/src/wsh/wsh
+#!/usr/bin/wsh
fname="/etc/passwd"
printf("\n ** Reading file %s\n", fname)
Index: wcc-0.0.2/src/wsh/scripts/dumpbin.wsh
===================================================================
--- wcc-0.0.2.orig/src/wsh/scripts/dumpbin.wsh
+++ wcc-0.0.2/src/wsh/scripts/dumpbin.wsh
@@ -1,4 +1,4 @@
-
+#!/usr/bin/wsh
f = io.open("/bin/pwd", "rb")
block = 48
totbytes = 0
Index: wcc-0.0.2/src/wsh/scripts/main.wsh
===================================================================
--- wcc-0.0.2.orig/src/wsh/scripts/main.wsh
+++ wcc-0.0.2/src/wsh/scripts/main.wsh
@@ -1,3 +1,4 @@
+#!/usr/bin/wsh
local ffi = require("ffi")
ffi.cdef[[
unsigned long compressBound(unsigned long sourceLen);
Index: wcc-0.0.2/src/wsh/scripts/debug
===================================================================
--- wcc-0.0.2.orig/src/wsh/scripts/debug
+++ wcc-0.0.2/src/wsh/scripts/debug
@@ -1 +1,2 @@
+#!/usr/bin/wsh
debug.debug()