aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorHeikki Lindholm <holin@iki.fi>2008-10-11 13:53:33 +0000
committerHeikki Lindholm <holin@iki.fi>2008-10-11 13:53:33 +0000
commitfd7b096323fd07dd49456507c9076cf6ea9d626b (patch)
tree84a0fbffbfa7eff2efe91ba6535c167721fcfc2c /contrib
parent7814099d8867dcaca469ca16759f80455d0a24f9 (diff)
downloadlibextractor-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.in6
-rwxr-xr-xcontrib/macosx/build-osx-framework.sh21
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
564fill_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
564make_framework_link() 577make_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}"
595ORIG_DIR=$(pwd) 608ORIG_DIR=$(pwd)
596old_umask=$(umask) 609old_umask=$(umask)
597 610
611if [ ! -n "$1" ]
612then
613 FW_VERSION_REV="1"
614else
615 FW_VERSION_REV="$1"
616fi
617
598# prepare build env 618# prepare build env
599fetch_all_packages 619fetch_all_packages
600umask 022 620umask 022
@@ -657,6 +677,7 @@ do
657done 677done
658cd "${ORIG_DIR}" 678cd "${ORIG_DIR}"
659copy_file_to_framework "./contrib/macosx/Info.plist" "Resources/Info.plist" 679copy_file_to_framework "./contrib/macosx/Info.plist" "Resources/Info.plist"
680fill_framework_revision "Resources/Info.plist"
660copy_file_to_framework "./contrib/macosx/English.lproj/InfoPlist.strings" "Resources/English.lproj/InfoPlist.strings" 681copy_file_to_framework "./contrib/macosx/English.lproj/InfoPlist.strings" "Resources/English.lproj/InfoPlist.strings"
661make_framework_link "lib/libextractor.dylib" "Extractor" 682make_framework_link "lib/libextractor.dylib" "Extractor"
662make_framework_link "lib" "Libraries" 683make_framework_link "lib" "Libraries"