33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
fi \
done
tarball:
V=$$(fgrep VERSION= objfw-config.in | sed 's/VERSION="\(.*\)"/\1/'); \
V2=$$(fgrep AC_INIT configure.ac | \
sed 's/AC_INIT([^,]*,\([^,]*\),.*/\1/' | sed 's/ //'); \
if test x"$$V" != x"$$V2"; then \
echo "objfw-config.h.in and configure.ac version mismatch!"; \
exit 1; \
fi; \
echo "Generating tarball for version $$V..."; \
rm -f objfw-$$V.tar.gz; \
rm -fr objfw-$$V; \
hg archive objfw-$$V; \
cp configure config.h.in objfw-$$V; \
cd objfw-$$V && rm -f .hg_archival.txt .hgignore .hgtags && cd ..; \
tar cf objfw-$$V.tar objfw-$$V; \
gzip -9 objfw-$$V.tar; \
rm -fr objfw-$$V
|
>
>
>
>
|
>
>
|
|
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
|
fi \
done
tarball:
V=$$(fgrep VERSION= objfw-config.in | sed 's/VERSION="\(.*\)"/\1/'); \
V2=$$(fgrep AC_INIT configure.ac | \
sed 's/AC_INIT([^,]*,\([^,]*\),.*/\1/' | sed 's/ //'); \
V3=$$(fgrep -A1 CFBundleVersion Info.plist | tail -1 | \
sed 's/.*>\(.*\)<.*/\1/'); \
V4=$$(fgrep -A1 CFBundleShortVersion Info.plist | tail -1 | \
sed 's/.*>\(.*\)<.*/\1/'); \
if test x"$$V2" != x"$$V" \
-o x"$$V3" != x"$$V" \
-o x"$$V4" != x"$$V4"; then \
echo "Not all files have the same version number!"; \
exit 1; \
fi; \
echo "Generating tarball for version $$V..."; \
rm -f objfw-$$V.tar.gz; \
rm -fr objfw-$$V; \
hg archive objfw-$$V; \
cp configure config.h.in objfw-$$V; \
cd objfw-$$V && rm -f .hg_archival.txt .hgignore .hgtags && cd ..; \
tar cf objfw-$$V.tar objfw-$$V; \
gzip -9 objfw-$$V.tar; \
rm -fr objfw-$$V
|