My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions

Issue 387 attachment: 0001-Adjust-makefile-to-be-more-compatible-Mac-OS-X-varia.patch (1.6 KB)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
From 580113de66f8e82ca5aae460b00c12ff3c59764b Mon Sep 17 00:00:00 2001
From: Edward Rudd <urkle@outoforder.cc>
Date: Thu, 11 Mar 2010 09:12:55 -0500
Subject: [PATCH 1/2] Adjust makefile to be more compatible (Mac OS X variants for sed and cp)

---
Makefile | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile
index a7d89ca..1230032 100644
--- a/Makefile
+++ b/Makefile
@@ -28,20 +28,20 @@ zip:
@echo "building js & css..."
@cd src; cat misc/head.txt ${JS_SRC_FILES} misc/foot.txt > ../build/fullcalendar/fullcalendar.js
@cd src/css; cat ${CSS_SRC_FILES} > ../../build/fullcalendar/fullcalendar.css
- @cp -rt build/fullcalendar ${OTHER_FILES}
+ @cp -r ${OTHER_FILES} build/fullcalendar
@for f in build/fullcalendar/*.*; do\
- sed -i "s/* FullCalendar/& v${VER}/" $$f;\
- sed -i "s/* Date:/& ${DATE}/" $$f;\
+ sed -i "" -e "s/* FullCalendar/& v${VER}/" $$f;\
+ sed -i "" -e "s/* Date:/& ${DATE}/" $$f;\
done
-
+
@echo "compressing js..."
@java -jar build/yuicompressor-2.4.2.jar -o build/fullcalendar/fullcalendar.min.js build/fullcalendar/fullcalendar.js

@echo "building examples..."
@for f in build/fullcalendar/examples/*.html; do\
- sed -i -n '1h;1!H;$${;g;s/<!--\s*<src>.*<\/src>\s*-->\s*//g;p;}' $$f;\
- sed -i -n '1h;1!H;$${;g;s/<!--\s*<dist>\s*//g;p;}' $$f;\
- sed -i -n '1h;1!H;$${;g;s/<\/dist>\s*-->\s*//g;p;}' $$f;\
+ sed -i "" -n '1h;1!H;$${;g;s/<!--\s*<src>.*<\/src>\s*-->\s*//g;p;}' $$f;\
+ sed -i "" -n '1h;1!H;$${;g;s/<!--\s*<dist>\s*//g;p;}' $$f;\
+ sed -i "" -n '1h;1!H;$${;g;s/<\/dist>\s*-->\s*//g;p;}' $$f;\
done

@echo "zipping..."
--
1.7.0.2

Powered by Google Project Hosting