File: avoid_depending_on_xcode.diff

package info (click to toggle)
oolite 1.84-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 124,644 kB
  • ctags: 3,975
  • sloc: objc: 132,132; ansic: 3,138; sh: 559; perl: 359; makefile: 276; php: 5
file content (26 lines) | stat: -rw-r--r-- 1,041 bytes parent folder | download
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
Description: Generate manifest.plist even without Xcode.
 As described in Doc/Version-bump.txt, the version in
 DebugOXP/Debug.oxp/manifest.plist is set manually. Generating
 manifest.plist from it is much easyer.
 .
 tools/mkmanifest.sh was not called anywhere else and may be removed.
Author: Nicolas Boulenguez <nicolas@debian.org>

--- a/GNUmakefile.postamble
+++ b/GNUmakefile.postamble
@@ -21,14 +21,12 @@
 SRC_BIN                          = $(OBJC_PROGRAM_NAME)$(OS_EXT)
 DEST_BIN                         = $(OBJC_PROGRAM_NAME)$(EXT)$(OS_EXT)
 
-MKMANIFEST=tools/mkmanifest.sh
-
 PROGDIR=$(OBJC_PROGRAM_NAME).app
 
 after-all::
 	$(MKDIRS) $(PROGDIR)
 	$(MKDIRS) $(PROGDIR)/Resources
-	$(MKMANIFEST) > $(PROGDIR)/Resources/manifest.plist
+	sed 's/Debug OXP/core/;s/\.debug//' DebugOXP/Debug.oxp/manifest.plist > $(PROGDIR)/Resources/manifest.plist
 	$(CP) $(CP_FLAGS) Resources/README.TXT $(PROGDIR)/Resources
 	$(CP) $(CP_FLAGS) Resources/InfoPlist.strings $(PROGDIR)/Resources
 	$(CP) $(CP_FLAGS) Resources/AIs $(PROGDIR)/Resources