Author: ranger
Date: Wed Jun  6 03:52:46 2007
New Revision: 819

URL: 
http://svn.finkproject.org/websvn/listing.php?sc=1&rev=819&repname=user%3a+ranger
Log:
move torrent again; replace timestamps in kdesupport

Modified:
    trunk/kde-mac/Makefile
    trunk/kde-mac/pmproj-to-pkg.sh
    trunk/kde-mac/qt-extras.pmproj
    trunk/kde-mac/qt.pmproj

Modified: trunk/kde-mac/Makefile
URL: 
http://svn.finkproject.org/websvn/diff.php?path=/trunk/kde-mac/Makefile&rev=819&repname=user%3a+ranger
==============================================================================
--- trunk/kde-mac/Makefile (original)
+++ trunk/kde-mac/Makefile Wed Jun  6 03:52:46 2007
@@ -1,6 +1,6 @@
 DATESTAMP ?= $(shell date '+%Y%m%d')
 
-MAKETORRENT=/sw/bin/btmaketorrent.py
+MAKETORRENT=/fink/bin/btmaketorrent.py
 
 PACKAGEMAKER := 
/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
 
@@ -111,6 +111,9 @@
        @echo "making torrent for $<"
        @cd packages; $(MAKETORRENT) 
http://ranger.users.finkproject.org:8080/announce `basename "$<"`; cd -
 
+packages/kdesupport-$(DATESTAMP).pkg: kdesupport.pmproj
+       @/bin/sh $(PWD)/pmproj-to-pkg.sh -r "$<" "$@"
+
 packages/%.mpkg packages/%.pkg: %.pmproj
        @/bin/sh $(PWD)/pmproj-to-pkg.sh "$<" "$@"
 

Modified: trunk/kde-mac/pmproj-to-pkg.sh
URL: 
http://svn.finkproject.org/websvn/diff.php?path=/trunk/kde-mac/pmproj-to-pkg.sh&rev=819&repname=user%3a+ranger
==============================================================================
--- trunk/kde-mac/pmproj-to-pkg.sh (original)
+++ trunk/kde-mac/pmproj-to-pkg.sh Wed Jun  6 03:52:46 2007
@@ -2,14 +2,33 @@
 
 export 
PACKAGEMAKER=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
 
-INPUT="$1"; shift
-OUTPUT="$1"; shift
+REPLACE_VERSION=0
+
+for arg in "$@"; do
+       case "$arg" in
+               -r|--r|--re|--rep|--repl|--repla|--replac|--replace)
+                       REPLACE_VERSION=1
+                       ;;
+               *)
+                       if [ -z "$INPUT" ]; then
+                               INPUT="$arg"
+                       elif [ -z "$OUTPUT" ]; then
+                               OUTPUT="$arg"
+                       else
+                               echo "warning: extra argument '$arg'"
+                       fi
+                       ;;
+       esac
+done
 
 ME=`dirname $0`
 ME=`cd $ME; pwd`
 
 if [ -z "$INPUT" ] || [ -z "$OUTPUT" ]; then
-       echo "usage: $0 <input pmproj> <output pkg>"
+       echo "usage: [-r] $0 <input pmproj> <output pkg>"
+       echo ""
+       echo "  -r   replace version with current timestamp"
+       echo ""
        exit 1
 fi
 
@@ -32,7 +51,11 @@
 echo "* adding datestamp to version"
 PACKAGEVERSION=`/usr/bin/defaults read "$OUTPUTDIR/$OUTPUTFILE/Contents/Info" 
"CFBundleShortVersionString" 2>/dev/null`
 if [ -n "$PACKAGEVERSION" ]; then
-       /usr/bin/defaults write "$OUTPUTDIR/$OUTPUTFILE/Contents/Info" 
"CFBundleShortVersionString" "$PACKAGEVERSION.$DATESTAMP"
+       if [ $REPLACE_VERSION -eq 1 ]; then
+               /usr/bin/defaults write "$OUTPUTDIR/$OUTPUTFILE/Contents/Info" 
"CFBundleShortVersionString" "$DATESTAMP"
+       else
+               /usr/bin/defaults write "$OUTPUTDIR/$OUTPUTFILE/Contents/Info" 
"CFBundleShortVersionString" "$PACKAGEVERSION.$DATESTAMP"
+       fi
        /usr/bin/plutil -convert xml1 
"$OUTPUTDIR/$OUTPUTFILE/Contents/Info.plist"
        /bin/chmod a+r "$OUTPUTDIR/$OUTPUTFILE/Contents/Info.plist"
        echo "- updated"

Modified: trunk/kde-mac/qt-extras.pmproj
URL: 
http://svn.finkproject.org/websvn/diff.php?path=/trunk/kde-mac/qt-extras.pmproj&rev=819&repname=user%3a+ranger
==============================================================================
Binary files - no diff available.

Modified: trunk/kde-mac/qt.pmproj
URL: 
http://svn.finkproject.org/websvn/diff.php?path=/trunk/kde-mac/qt.pmproj&rev=819&repname=user%3a+ranger
==============================================================================
Binary files - no diff available.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to