diff options
author | Heikki Lindholm <holin@iki.fi> | 2008-10-11 13:53:33 +0000 |
---|---|---|
committer | Heikki Lindholm <holin@iki.fi> | 2008-10-11 13:53:33 +0000 |
commit | fd7b096323fd07dd49456507c9076cf6ea9d626b (patch) | |
tree | 84a0fbffbfa7eff2efe91ba6535c167721fcfc2c /contrib | |
parent | 7814099d8867dcaca469ca16759f80455d0a24f9 (diff) | |
download | libextractor-fd7b096323fd07dd49456507c9076cf6ea9d626b.tar.gz libextractor-fd7b096323fd07dd49456507c9076cf6ea9d626b.zip |
support for revisions, i.e. no changes in extractor code, but in deps or the build process
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/macosx/Info.plist.in | 6 | ||||
-rwxr-xr-x | contrib/macosx/build-osx-framework.sh | 21 |
2 files changed, 24 insertions, 3 deletions
diff --git a/contrib/macosx/Info.plist.in b/contrib/macosx/Info.plist.in index b7b242e..939832e 100644 --- a/contrib/macosx/Info.plist.in +++ b/contrib/macosx/Info.plist.in | |||
@@ -9,7 +9,7 @@ | |||
9 | <key>CFBundleName</key> | 9 | <key>CFBundleName</key> |
10 | <string>Extractor</string> | 10 | <string>Extractor</string> |
11 | <key>CFBundleGetInfoString</key> | 11 | <key>CFBundleGetInfoString</key> |
12 | <string>@PACKAGE_STRING@, Copyright 2002-2008 Vidyut Samanta and Christian Grothoff</string> | 12 | <string>Extractor (@PACKAGE_STRING@), Copyright 2002-2008 Vidyut Samanta and Christian Grothoff</string> |
13 | <key>CFBundleIconFile</key> | 13 | <key>CFBundleIconFile</key> |
14 | <string></string> | 14 | <string></string> |
15 | <key>CFBundleIdentifier</key> | 15 | <key>CFBundleIdentifier</key> |
@@ -19,10 +19,10 @@ | |||
19 | <key>CFBundlePackageType</key> | 19 | <key>CFBundlePackageType</key> |
20 | <string>FMWK</string> | 20 | <string>FMWK</string> |
21 | <key>CFBundleShortVersionString</key> | 21 | <key>CFBundleShortVersionString</key> |
22 | <string>@PACKAGE_VERSION@-0</string> | 22 | <string>@PACKAGE_VERSION@</string> |
23 | <key>CFBundleSignature</key> | 23 | <key>CFBundleSignature</key> |
24 | <string>????</string> | 24 | <string>????</string> |
25 | <key>CFBundleVersion</key> | 25 | <key>CFBundleVersion</key> |
26 | <string>Extractor @PACKAGE_VERSION@-0</string> | 26 | <string>Extractor @PACKAGE_VERSION@-@FRAMEWORK_REVISION@</string> |
27 | </dict> | 27 | </dict> |
28 | </plist> | 28 | </plist> |
diff --git a/contrib/macosx/build-osx-framework.sh b/contrib/macosx/build-osx-framework.sh index 4d21e14..1473dcc 100755 --- a/contrib/macosx/build-osx-framework.sh +++ b/contrib/macosx/build-osx-framework.sh | |||
@@ -561,6 +561,19 @@ copy_file_to_framework() | |||
561 | fi | 561 | fi |
562 | } | 562 | } |
563 | 563 | ||
564 | fill_framework_revision() | ||
565 | { | ||
566 | local dst_file="${FINAL_FW_DIR}/$1" | ||
567 | if [ -e "$dst_file" ] | ||
568 | then | ||
569 | if ! ( sed -e "s/@FRAMEWORK_REVISION@/${FW_VERSION_REV}/g" -i "" "$dst_file" ) | ||
570 | then | ||
571 | echo "sed error" | ||
572 | exit 1 | ||
573 | fi | ||
574 | fi | ||
575 | } | ||
576 | |||
564 | make_framework_link() | 577 | make_framework_link() |
565 | { | 578 | { |
566 | local link_target="$1" | 579 | local link_target="$1" |
@@ -595,6 +608,13 @@ FINAL_FW_DIR="${FINAL_FW_BASE_DIR}/${FW_VERSION_DIR}" | |||
595 | ORIG_DIR=$(pwd) | 608 | ORIG_DIR=$(pwd) |
596 | old_umask=$(umask) | 609 | old_umask=$(umask) |
597 | 610 | ||
611 | if [ ! -n "$1" ] | ||
612 | then | ||
613 | FW_VERSION_REV="1" | ||
614 | else | ||
615 | FW_VERSION_REV="$1" | ||
616 | fi | ||
617 | |||
598 | # prepare build env | 618 | # prepare build env |
599 | fetch_all_packages | 619 | fetch_all_packages |
600 | umask 022 | 620 | umask 022 |
@@ -657,6 +677,7 @@ do | |||
657 | done | 677 | done |
658 | cd "${ORIG_DIR}" | 678 | cd "${ORIG_DIR}" |
659 | copy_file_to_framework "./contrib/macosx/Info.plist" "Resources/Info.plist" | 679 | copy_file_to_framework "./contrib/macosx/Info.plist" "Resources/Info.plist" |
680 | fill_framework_revision "Resources/Info.plist" | ||
660 | copy_file_to_framework "./contrib/macosx/English.lproj/InfoPlist.strings" "Resources/English.lproj/InfoPlist.strings" | 681 | copy_file_to_framework "./contrib/macosx/English.lproj/InfoPlist.strings" "Resources/English.lproj/InfoPlist.strings" |
661 | make_framework_link "lib/libextractor.dylib" "Extractor" | 682 | make_framework_link "lib/libextractor.dylib" "Extractor" |
662 | make_framework_link "lib" "Libraries" | 683 | make_framework_link "lib" "Libraries" |