Overview
Context
Changes
Modified utils/Makefile
from [66bf0f7ed1]
to [e5221f687b].
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
|
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
|
-
-
+
+
-
+
|
include ../extra.mk
SUBDIRS += ${OFHASH} \
${OFHTTP} \
${OFZIP}
include ../buildsys.mk
DISTCLEAN = objfw-config
install-extra: objfw-config objfw-compile
for i in objfw-config objfw-compile; do \
install-extra: objfw-config objfw-compile objfw-new
for i in objfw-config objfw-compile objfw-new; do \
${INSTALL_STATUS}; \
if ${MKDIR_P} ${DESTDIR}${bindir} && ${INSTALL} -m 755 $$i ${DESTDIR}${bindir}/${BIN_PREFIX}$$i; then \
${INSTALL_OK}; \
else \
${INSTALL_FAILED}; \
fi \
done
uninstall-extra:
for i in objfw-config objfw-compile; do \
for i in objfw-config objfw-compile objfw-new; do \
if test -f ${DESTDIR}${bindir}/${BIN_PREFIX}$$i; then \
if rm -f ${DESTDIR}${bindir}/${BIN_PREFIX}$$i; then \
${DELETE_OK}; \
else \
${DELETE_FAILED}; \
fi \
fi \
done
|
Added utils/objfw-new version [c18da52b55].
|
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
#!/bin/sh
show_help() {
echo "Usage: objfw-new app|class name"
exit 1
}
already_exists() {
echo "$1 already exists! Aborting..."
exit 1
}
type="$1"
name="$2"
test -z "$name" && show_help
case "$1" in
app)
test -f "$name.m" && already_exists "$name.m"
cat >"$name.m" <<__EOF__
#import <ObjFW/ObjFW.h>
@interface $name: OFObject <OFApplicationDelegate>
@end
OF_APPLICATION_DELEGATE($name)
@implementation $name
- (void)applicationDidFinishLaunching
{
[OFApplication terminate];
}
@end
__EOF__
;;
class)
test -f "$name.h" && already_exists "$name.h"
test -f "$name.m" && already_exists "$name.m"
cat >"$name.h" <<__EOF__
#import <ObjFW/ObjFW.h>
@interface $name: OFObject
@end
__EOF__
cat >"$name.m" <<__EOF__
#import "$name.h"
@implementation $name
@end
__EOF__
;;
*)
show_help
;;
esac
|
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |