packages/lang/perl/patches/100-static_uudmap.patch
matteo 0f85f5cd34 perl: refresh patch and fix generate_uudmap permissions
git-svn-id: svn://svn.openwrt.org/openwrt/packages@11669 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-05 19:29:54 +00:00

51 lines
1.4 KiB
Diff

--- a/generate_uudmap 1970-01-01 01:00:00.000000000 +0100
+++ b/generate_uudmap 2008-07-05 20:23:22.122800470 +0200
@@ -0,0 +1,7 @@
+#!/bin/bash
+echo \{
+for i in {0..31}; do echo -n ' 0,'; done
+echo
+for i in {0..63}; do echo -n " $i,"; done
+echo
+echo \}
--- a/Makefile.micro 2007-12-18 11:47:07.000000000 +0100
+++ b/Makefile.micro 2008-07-05 20:38:56.428673229 +0200
@@ -173,13 +173,8 @@
uxsutils$(_O): $(HE) xsutils.c
$(CC) $(CCFLAGS) -o $@ $(CFLAGS) xsutils.c
-uudmap.h: generate_uudmap$(_X)
- $(RUN) ./generate_uudmap$(_X) >uudmap.h
-
-generate_uudmap$(_O): generate_uudmap.c
- $(CC) $(CCFLAGS) -o $@ $(CFLAGS) generate_uudmap.c
-
-generate_uudmap$(_X): generate_uudmap$(_O)
- $(LD) -o generate_uudmap $(LDFLAGS) generate_uudmap$(_O) $(LIBS)
+uudmap.h:
+ chmod a+x generate_uudmap
+ $(RUN) ./generate_uudmap >uudmap.h
# That's it, folks!
--- a/Makefile.SH 2007-12-18 11:47:07.000000000 +0100
+++ b/Makefile.SH 2008-07-05 21:26:49.383799357 +0200
@@ -478,11 +478,13 @@
globals\$(OBJ_EXT): uudmap.h
-uudmap.h: generate_uudmap\$(EXE_EXT)
- \$(RUN) ./generate_uudmap\$(EXE_EXT) >uudmap.h
-
-generate_uudmap\$(EXE_EXT): generate_uudmap\$(OBJ_EXT)
- \$(CC) -o generate_uudmap \$(LDFLAGS) generate_uudmap\$(OBJ_EXT) \$(libs)
+uudmap.h: generate_uudmap
+ chmod a+x generate_uudmap
+ \$(RUN) ./generate_uudmap >uudmap.h
+
+generate_uudmap:
+ cp ../generate_uudmap .
+ touch generate_uudmap
!GROK!THIS!
$spitshell >>Makefile <<'!NO!SUBS!'