Changeset 352 for trunk/appswitch


Ignore:
Timestamp:
11/07/07 03:55:29 (17 years ago)
Author:
Nicholas Riley
Message:

svn:ignore: added appswitch, now it builds in the top-level directory.

README: Fixed installation instructions, now appswitch builds in the
top-level directory.

appswitch.xcodeproj: Add Xcode 3 specific stuff; remove detritus from
install build.

package-appswitch.sh: Update based on package-launch.sh from [305] and
[312]: simplifies and moves executable out of build directory;
properly creates man directory and sets permissions on man page;
removes mentions of .dmg packaging; excludes more useless things
instead of ineffectively deleting them.

Location:
trunk/appswitch
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/appswitch/appswitch

    • Property svn:ignore
      •  

        old new  
         1appswitch
        12build
        23*~
  • trunk/appswitch/appswitch/README

    r350 r352  
    3131
    3232% sudo /usr/bin/install -d /usr/local/bin /usr/local/man/man1
    33 % sudo /usr/bin/install -c build/appswitch /usr/local/bin
    34 % sudo /usr/bin/install -c appswitch.1 /usr/local/man/man1
     33% sudo /usr/bin/install appswitch /usr/local/bin
     34% sudo /usr/bin/install appswitch.1 /usr/local/man/man1
    3535% rehash                                # if necessary
    3636
  • trunk/appswitch/appswitch/appswitch.xcodeproj/nicholas.pbxuser

    r350 r352  
    473473                };
    474474                perUserProjectItems = {
    475                         E1529A180CE15D2F008A50ED /* PBXTextBookmark */ = E1529A180CE15D2F008A50ED /* PBXTextBookmark */;
    476                         E1529A390CE167D7008A50ED /* XCDiffFileBookmark */ = E1529A390CE167D7008A50ED /* XCDiffFileBookmark */;
    477                         E1529A3A0CE167D7008A50ED /* PBXBookmark */ = E1529A3A0CE167D7008A50ED /* PBXBookmark */;
    478475                        E1529A3E0CE167D7008A50ED /* XCDiffFileBookmark */ = E1529A3E0CE167D7008A50ED /* XCDiffFileBookmark */;
    479                         E1529A3F0CE167D7008A50ED /* PBXBookmark */ = E1529A3F0CE167D7008A50ED /* PBXBookmark */;
    480                         E1529A460CE168B3008A50ED /* PBXBookmark */ = E1529A460CE168B3008A50ED /* PBXBookmark */;
    481                         E1529A480CE168B3008A50ED /* PBXBookmark */ = E1529A480CE168B3008A50ED /* PBXBookmark */;
    482                         E1AC50020CE14E3400EAF6A0 = E1AC50020CE14E3400EAF6A0 /* PBXBookmark */;
    483                         E1AC50080CE15B2A00EAF6A0 = E1AC50080CE15B2A00EAF6A0 /* PBXTextBookmark */;
     476                        E1529A520CE169F4008A50ED /* XCDiffFileBookmark */ = E1529A520CE169F4008A50ED /* XCDiffFileBookmark */;
     477                        E1529A5F0CE16BCF008A50ED /* PBXBookmark */ = E1529A5F0CE16BCF008A50ED /* PBXBookmark */;
     478                        E1529A610CE16BCF008A50ED /* PBXBookmark */ = E1529A610CE16BCF008A50ED /* PBXBookmark */;
    484479                };
    485480                sourceControlManager = E18A0A29063362FF008DC67C /* Source Control */;
     
    505500                };
    506501        };
    507         E1529A180CE15D2F008A50ED /* PBXTextBookmark */ = {
    508                 isa = PBXTextBookmark;
    509                 fRef = 08FB7796FE84155DC02AAC07 /* main.c */;
    510                 name = "main.c: 435";
    511                 rLen = 0;
    512                 rLoc = 18354;
    513                 rType = 0;
    514                 vrLen = 3071;
    515                 vrLoc = 17850;
    516         };
    517         E1529A390CE167D7008A50ED /* XCDiffFileBookmark */ = {
    518                 isa = XCDiffFileBookmark;
    519                 id = "38460393-88EE-46ED-9988-27C111FC6838-35666-00005EBFDB812B3F";
    520         };
    521         E1529A3A0CE167D7008A50ED /* PBXBookmark */ = {
    522                 isa = PBXBookmark;
    523                 fRef = E1529A3B0CE167D7008A50ED /* README - SCM */;
    524         };
    525         E1529A3B0CE167D7008A50ED /* README - SCM */ = {
    526                 isa = PBXFileReference;
    527                 path = "README - SCM";
    528                 sourceTree = "<group>";
    529         };
    530502        E1529A3E0CE167D7008A50ED /* XCDiffFileBookmark */ = {
    531503                isa = XCDiffFileBookmark;
    532504                id = "3C26C1FE-1931-47C8-B7DB-C40B565477E6-35666-00005EBEFF136CD5";
    533505        };
    534         E1529A3F0CE167D7008A50ED /* PBXBookmark */ = {
     506        E1529A520CE169F4008A50ED /* XCDiffFileBookmark */ = {
     507                isa = XCDiffFileBookmark;
     508                id = "5E099BBE-C9F0-4A0B-9CAA-0680AA0A9FF7-35666-00005F05800481F9";
     509        };
     510        E1529A5F0CE16BCF008A50ED /* PBXBookmark */ = {
    535511                isa = PBXBookmark;
    536                 fRef = E1529A400CE167D7008A50ED /* appswitch.1 - SCM */;
    537         };
    538         E1529A400CE167D7008A50ED /* appswitch.1 - SCM */ = {
     512                fRef = E1529A600CE16BCF008A50ED /* appswitch.1 - SCM */;
     513        };
     514        E1529A600CE16BCF008A50ED /* appswitch.1 - SCM */ = {
    539515                isa = PBXFileReference;
    540516                path = "appswitch.1 - SCM";
    541517                sourceTree = "<group>";
    542518        };
    543         E1529A460CE168B3008A50ED /* PBXBookmark */ = {
     519        E1529A610CE16BCF008A50ED /* PBXBookmark */ = {
    544520                isa = PBXBookmark;
    545                 fRef = E1529A470CE168B3008A50ED /* README - SCM */;
    546         };
    547         E1529A470CE168B3008A50ED /* README - SCM */ = {
    548                 isa = PBXFileReference;
    549                 path = "README - SCM";
    550                 sourceTree = "<group>";
    551         };
    552         E1529A480CE168B3008A50ED /* PBXBookmark */ = {
    553                 isa = PBXBookmark;
    554                 fRef = E1529A490CE168B3008A50ED /* appswitch.1 - SCM */;
    555         };
    556         E1529A490CE168B3008A50ED /* appswitch.1 - SCM */ = {
     521                fRef = E1529A620CE16BCF008A50ED /* appswitch.1 - SCM */;
     522        };
     523        E1529A620CE16BCF008A50ED /* appswitch.1 - SCM */ = {
    557524                isa = PBXFileReference;
    558525                path = "appswitch.1 - SCM";
     
    613580                uiCtxt = {
    614581                        sepNavIntBoundsRect = "{{0, 0}, {758, 1144}}";
    615                         sepNavSelRange = "{2790, 0}";
    616                         sepNavVisRange = "{791, 2830}";
     582                        sepNavSelRange = "{3620, 0}";
     583                        sepNavVisRange = "{791, 2829}";
    617584                        sepNavVisRect = "{{0, 0}, {778, 872}}";
    618585                        sepNavWindowFrame = "{{15, 67}, {817, 930}}";
     
    642609                };
    643610        };
    644         E1AC50020CE14E3400EAF6A0 /* PBXBookmark */ = {
    645                 isa = PBXBookmark;
    646                 fRef = 08FB7796FE84155DC02AAC07 /* main.c */;
    647         };
    648         E1AC50080CE15B2A00EAF6A0 /* PBXTextBookmark */ = {
    649                 isa = PBXTextBookmark;
    650                 fRef = 08FB7796FE84155DC02AAC07 /* main.c */;
    651                 name = "main.c: 434";
    652                 rLen = 0;
    653                 rLoc = 18561;
    654                 rType = 0;
    655                 vrLen = 3446;
    656                 vrLoc = 16856;
    657         };
    658611}
  • trunk/appswitch/appswitch/appswitch.xcodeproj/project.pbxproj

    r345 r352  
    88
    99/* Begin PBXBuildFile section */
    10                 E1607EFB0AF3700B001EAB72 /* CPS.h in Headers */ = {isa = PBXBuildFile; fileRef = E1A0BD3203EFAD9E00050001 /* CPS.h */; };
    1110                E1607EFD0AF3700B001EAB72 /* main.c in Sources */ = {isa = PBXBuildFile; fileRef = 08FB7796FE84155DC02AAC07 /* main.c */; settings = {ATTRIBUTES = (); }; };
    1211                E1607EFF0AF3700B001EAB72 /* ApplicationServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E1A0BD4C03EFB64400050001 /* ApplicationServices.framework */; };
    13                 E1607F020AF3700B001EAB72 /* appswitch.1 in CopyFiles */ = {isa = PBXBuildFile; fileRef = C6859E970290921104C91782 /* appswitch.1 */; };
    14                 E1607F030AF3700B001EAB72 /* README in CopyFiles */ = {isa = PBXBuildFile; fileRef = E16C83CC03F7AF7B00050002 /* README */; };
    1512/* End PBXBuildFile section */
    16 
    17 /* Begin PBXCopyFilesBuildPhase section */
    18                 E1607F010AF3700B001EAB72 /* CopyFiles */ = {
    19                         isa = PBXCopyFilesBuildPhase;
    20                         buildActionMask = 8;
    21                         dstPath = /usr/share/man/man1/;
    22                         dstSubfolderSpec = 0;
    23                         files = (
    24                                 E1607F020AF3700B001EAB72 /* appswitch.1 in CopyFiles */,
    25                                 E1607F030AF3700B001EAB72 /* README in CopyFiles */,
    26                         );
    27                         runOnlyForDeploymentPostprocessing = 1;
    28                 };
    29 /* End PBXCopyFilesBuildPhase section */
    3013
    3114/* Begin PBXFileReference section */
     
    9780/* End PBXGroup section */
    9881
    99 /* Begin PBXHeadersBuildPhase section */
    100                 E1607EFA0AF3700B001EAB72 /* Headers */ = {
    101                         isa = PBXHeadersBuildPhase;
    102                         buildActionMask = 2147483647;
    103                         files = (
    104                                 E1607EFB0AF3700B001EAB72 /* CPS.h in Headers */,
    105                         );
    106                         runOnlyForDeploymentPostprocessing = 0;
    107                 };
    108 /* End PBXHeadersBuildPhase section */
    109 
    11082/* Begin PBXNativeTarget section */
    11183                E1607EF90AF3700B001EAB72 /* appswitch */ = {
     
    11385                        buildConfigurationList = E1607F040AF3700B001EAB72 /* Build configuration list for PBXNativeTarget "appswitch" */;
    11486                        buildPhases = (
    115                                 E1607EFA0AF3700B001EAB72 /* Headers */,
    11687                                E1607EFC0AF3700B001EAB72 /* Sources */,
    11788                                E1607EFE0AF3700B001EAB72 /* Frameworks */,
    118                                 E1607F000AF3700B001EAB72 /* Rez */,
    119                                 E1607F010AF3700B001EAB72 /* CopyFiles */,
    12089                        );
    12190                        buildRules = (
     
    146115/* End PBXProject section */
    147116
    148 /* Begin PBXRezBuildPhase section */
    149                 E1607F000AF3700B001EAB72 /* Rez */ = {
    150                         isa = PBXRezBuildPhase;
    151                         buildActionMask = 2147483647;
    152                         files = (
    153                         );
    154                         runOnlyForDeploymentPostprocessing = 0;
    155                 };
    156 /* End PBXRezBuildPhase section */
    157 
    158117/* Begin PBXSourcesBuildPhase section */
    159118                E1607EFC0AF3700B001EAB72 /* Sources */ = {
     
    190149                        buildSettings = {
    191150                                COPY_PHASE_STRIP = NO;
    192                                 GCC_ENABLE_FIX_AND_CONTINUE = YES;
    193151                                GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
    194152                                GCC_OPTIMIZATION_LEVEL = 0;
    195153                                INSTALL_PATH = "$(HOME)/bin";
    196                                 MACOSX_DEPLOYMENT_TARGET = 10.3;
     154                                MACOSX_DEPLOYMENT_TARGET = 10.4;
    197155                                PRODUCT_NAME = appswitch;
    198156                                WARNING_CFLAGS = (
     
    201159                                        "-Wno-unknown-pragmas",
    202160                                );
    203                                 ZERO_LINK = YES;
    204161                        };
    205162                        name = Development;
     
    211168                                GCC_ENABLE_FIX_AND_CONTINUE = NO;
    212169                                INSTALL_PATH = "$(HOME)/bin";
    213                                 MACOSX_DEPLOYMENT_TARGET = 10.3;
     170                                MACOSX_DEPLOYMENT_TARGET = 10.4;
    214171                                PRODUCT_NAME = appswitch;
    215172                                WARNING_CFLAGS = (
  • trunk/appswitch/package-appswitch.sh

    r160 r352  
    55cd appswitch && \
    66find . -name \*~ -exec rm '{}' \; && \
    7 xcodebuild && \
    8 SetFile -c 'R*ch' -t 'TEXT' README VERSION && \
    9 strip build/appswitch && \
    10 sudo /usr/bin/install -c build/appswitch /usr/local/bin && \
    11 sudo /usr/bin/install -c appswitch.1 /usr/local/man/man1 && \
    12 chmod 755 build/appswitch && \
     7xcodebuild -configuration Deployment clean && \
     8xcodebuild -configuration Deployment DSTROOT=/ "INSTALL_PATH=$PWD" install && \
     9SetFile -c 'ttxt' -t 'TEXT' README VERSION appswitch.1 && \
     10sudo /usr/bin/install -d /usr/local/bin /usr/local/man/man1 && \
     11sudo /usr/bin/install appswitch /usr/local/bin && \
     12sudo /usr/bin/install -m 644 appswitch.1 /usr/local/man/man1 && \
     13chmod 755 appswitch && \
    1314chmod 644 appswitch.1 && \
    14 rm -rf build/appswitch.build build/intermediates build/.gdb_history && \
    1515VERSION=`cat VERSION` TARBALL="appswitch-$VERSION.tar.gz" && \
    16 DMG="appswitch-$VERSION.dmg" VOL="appswitch $VERSION" MOUNTPOINT="/Volumes/$VOL" && \
    1716cd .. && \
    18 rm -f appswitch-$VERSION $TARBALL $DMG && \
     17rm -f appswitch-$VERSION $TARBALL && \
    1918ln -s appswitch appswitch-$VERSION && \
    20 tar --owner=root --group=wheel --exclude=.DS_Store --exclude=.svn --exclude=.gdb_history -zchf appswitch-$VERSION.tar.gz appswitch-$VERSION && \
    21 #hdiutil create $DMG -megabytes 5 -ov -type UDIF && \
    22 #DISK=`hdid $DMG | sed -ne ' /Apple_partition_scheme/ s|^/dev/\([^ ]*\).*$|\1|p'` && \
    23 #newfs_hfs -v "$VOL" /dev/r${DISK}s2 && \
    24 #hdiutil eject $DISK && \
    25 #hdid $DMG && \
    26 #ditto -rsrc launch "$MOUNTPOINT" && \
    27 #ditto -rsrc "InstallAnywhere/launch_Web_Installers/InstData/MacOSX/Install launch $VERSION.sit" "/Volumes/launch $VERSION" && \
    28 #launch "$MOUNTPOINT/Install launch $VERSION.sit" && \
    29 #./openUp "$MOUNTPOINT" && \
    30 #sleep 2 && \
    31 ## hdiutil eject $DISK && \ # this doesn't work
    32 #osascript -e "tell application \"Finder\" to eject disk \"$VOL\"" && \
    33 #hdiutil convert $DMG -format UDZO -o z$DMG && \
    34 #mv z$DMG $DMG && \
    35 scp $TARBALL ainaz:web/nriley/software/ #$DMG
     19tar --owner=root --group=wheel --exclude=.DS_Store --exclude=.svn --exclude=.gdb_history --exclude=build --exclude=\*.mode* --exclude=\*.pbxuser --exclude=\*.perspective -zchf appswitch-$VERSION.tar.gz appswitch-$VERSION && \
     20# scp $TARBALL ainaz:web/nriley/software/
    3621:
Note: See TracChangeset for help on using the changeset viewer.