Changeset 160


Ignore:
Timestamp:
05/16/04 06:20:42 (20 years ago)
Author:
Nicholas Riley
Message:

package-appswitch.sh: replace pbxbuild with xcodebuild; fix permissions

appswitch/appswitch.1: updated for actual release date

appswitch/main.c: updated for 1.0.1; fix PSN width, resolves #1; fix
compiler warning

appswitch/README: updated for actual release date; PB -> Xcode;
updated timings; updated version history

Location:
trunk/appswitch
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/appswitch/appswitch/README

    r156 r160  
    1 appswitch 1.0.1 [19 April 2004]
     1appswitch 1.0.1 [16 May 2004]
    22===============
    33
     
    4242-----------
    4343
    44 A Project Builder project, 'appswitch.pbproj', is included.  A
    45 precompiled binary is also provided.  'appswitch' was developed and
    46 tested under Mac OS 10.3.3 with the April 2004 Developer Tools,
    47 and does not require any additional software to build.
     44An Xcode project, 'appswitch.xcode', is included.  A precompiled
     45binary is also provided.  'appswitch' was developed and tested under
     46Mac OS 10.3.3 with the April 2004 Developer Tools, and does not
     47require any additional software to build.
    4848
    4949USAGE
     
    5656other methods, this should give you some indication.
    5757
    58 appswitch -a Emacs          0.00s user 0.02s system  5% cpu 0.355 total
    59 appswitch -i com.gnu.Emacs  0.01s user 0.04s system 13% cpu 0.381 total
    60 open -a Emacs               0.30s user 0.15s system 53% cpu 0.842 total
     58appswitch -a Emacs          0.00s user 0.02s system 55% cpu 0.054 total
     59appswitch -i com.gnu.Emacs  0.00s user 0.04s system 63% cpu 0.063 total
     60open -a Emacs               0.32s user 0.12s system 50% cpu 0.876 total
     61launch -a Emacs             0.00s user 0.03s system 35% cpu 0.085 total
    6162osascript -e 'tell application "Emacs" to activate'
    62                             0.66s user 0.42s system 45% cpu 2.361 total
     63                            0.41s user 0.23s system 67% cpu 0.949 total
    6364
    6465The above tests were performed on a PowerBook G4/800; slower systems
     
    7374---------------
    7475
    75 1.0.1 - 19 April 2004
    76 - fixed crash matching applications with no bundle identifier
     761.0.1 - 16 May 2004
     77 - fixed crash matching applications with no bundle identifier
     78 - fixed process listing PSN column width
    77791.0   - 19 February 2003
    7880 - added description of -q delay bug (no workaround)
  • trunk/appswitch/appswitch/appswitch.1

    r156 r160  
    1 .Dd Mon Apr 19 2004      \" DATE
     1.Dd Sun May 16 2004      \" DATE
    22.Dt APPSWITCH 1 LOCAL    \" Program name and manual section number
    33.Os appswitch 1.0.1
  • trunk/appswitch/appswitch/appswitch.xcode/nicholas.pbxuser

    r156 r160  
    22{
    33        08FB7793FE84155DC02AAC07 = {
    4                 activeBuildStyle = 014CEA490018CE3211CA2923;
     4                activeBuildStyle = 014CEA4A0018CE3211CA2923;
    55                activeExecutable = E1A0BD2C03EFAD1C00050001;
    66                activeTarget = 08FB779FFE84155DC02AAC07;
     
    5151                                );
    5252                        };
    53                         PBXPerProjectTemplateStateSaveDate = 104034524;
     53                        PBXPerProjectTemplateStateSaveDate = 106378266;
    5454                        PBXPrepackagedSmartGroups_v2 = (
    5555                                {
     
    226226                                                        isCollapsed = yes;
    227227                                                        sizes = (
    228                                                                 "{{0, 0}, {571, 118}}",
    229                                                                 "{{0, 118}, {571, 547}}",
     228                                                                "{{0, 0}, {571, 121}}",
     229                                                                "{{0, 121}, {571, 544}}",
    230230                                                        );
    231231                                                };
    232232                                                PBXProjectWorkspaceModule_DataSourceSelectionKey_Rev6 = {
    233                                                         BoundsStr = "{{0, 0}, {556, 101}}";
     233                                                        BoundsStr = "{{0, 0}, {556, 104}}";
    234234                                                        Rows = (
    235235                                                                0,
    236236                                                        );
    237                                                         VisibleRectStr = "{{0, 0}, {556, 101}}";
     237                                                        VisibleRectStr = "{{0, 0}, {556, 104}}";
    238238                                                };
    239239                                                PBXProjectWorkspaceModule_EditorOpen = true;
     
    241241                                                        PBXSplitModuleInNavigatorKey = {
    242242                                                                Split0 = {
    243                                                                         bookmark = E1737411063370F0002A81F1;
     243                                                                        bookmark = E1CC5D69065735A3001A87C9;
    244244                                                                        history = (
    245                                                                                 E18A0A500633657C008DC67C,
    246245                                                                                E18A0A5B0633660A008DC67C,
    247246                                                                                E18A0A6B06336B3F008DC67C,
    248                                                                                 E18A0A6F06336B56008DC67C,
    249247                                                                                E173740F063370F0002A81F1,
    250248                                                                                E18A0A3A06336491008DC67C,
     249                                                                                E1CC5D67065735A3001A87C9,
     250                                                                                E18A0A500633657C008DC67C,
    251251                                                                        );
    252252                                                                        prevStack = (
     
    255255                                                                                E18A0A6806336B3E008DC67C,
    256256                                                                                E18A0A6C06336B3F008DC67C,
    257                                                                                 E1737410063370F0002A81F1,
     257                                                                                E1CC5D68065735A3001A87C9,
    258258                                                                        );
    259259                                                                };
     
    272272                                                        };
    273273                                                };
    274                                                 PBXProjectWorkspaceModule_OldDetailFrame = "{{0, 0}, {571, 118}}";
    275                                                 PBXProjectWorkspaceModule_OldEditorFrame = "{{0, 118}, {571, 547}}";
     274                                                PBXProjectWorkspaceModule_OldDetailFrame = "{{0, 0}, {571, 121}}";
     275                                                PBXProjectWorkspaceModule_OldEditorFrame = "{{0, 121}, {571, 544}}";
    276276                                                PBXProjectWorkspaceModule_OldSuperviewFrame = "{{182, 0}, {571, 665}}";
    277277                                                PBXProjectWorkspaceModule_SGTM = {
     
    304304                                                                PBXSmartGroupTreeModuleOutlineStateSelectionKey = (
    305305                                                                        (
    306                                                                                 10,
     306                                                                                6,
     307                                                                                4,
     308                                                                                0,
    307309                                                                        ),
    308310                                                                );
     
    470472                                RubberWindowFrame = "46 125 753 707 0 0 1280 832 ";
    471473                        };
    472                         PBXWorkspaceStateSaveDate = 104034524;
     474                        PBXWorkspaceStateSaveDate = 106378266;
    473475                };
    474476                perUserProjectItems = {
    475477                        E173740F063370F0002A81F1 = E173740F063370F0002A81F1;
    476                         E1737410063370F0002A81F1 = E1737410063370F0002A81F1;
    477                         E1737411063370F0002A81F1 = E1737411063370F0002A81F1;
    478478                        E18A0A3A06336491008DC67C = E18A0A3A06336491008DC67C;
    479479                        E18A0A3C06336491008DC67C = E18A0A3C06336491008DC67C;
     
    484484                        E18A0A6B06336B3F008DC67C = E18A0A6B06336B3F008DC67C;
    485485                        E18A0A6C06336B3F008DC67C = E18A0A6C06336B3F008DC67C;
    486                         E18A0A6F06336B56008DC67C = E18A0A6F06336B56008DC67C;
     486                        E1CC5D67065735A3001A87C9 = E1CC5D67065735A3001A87C9;
     487                        E1CC5D68065735A3001A87C9 = E1CC5D68065735A3001A87C9;
     488                        E1CC5D69065735A3001A87C9 = E1CC5D69065735A3001A87C9;
    487489                };
    488490                sourceControlManager = E18A0A29063362FF008DC67C;
     
    492494        08FB7796FE84155DC02AAC07 = {
    493495                uiCtxt = {
    494                         sepNavIntBoundsRect = "{{0, 0}, {709, 5843}}";
    495                         sepNavSelRange = "{14100, 30}";
    496                         sepNavVisRect = "{{0, 4189}, {709, 443}}";
     496                        sepNavIntBoundsRect = "{{0, 0}, {530, 6287}}";
     497                        sepNavSelRange = "{16945, 0}";
     498                        sepNavVisRect = "{{0, 5419}, {530, 527}}";
    497499                        sepNavWindowFrame = "{{15, 325}, {750, 502}}";
    498500                };
     
    513515        E16C83CC03F7AF7B00050002 = {
    514516                uiCtxt = {
    515                         sepNavIntBoundsRect = "{{0, 0}, {530, 1036}}";
    516                         sepNavSelRange = "{0, 0}";
    517                         sepNavVisRect = "{{0, 0}, {530, 533}}";
     517                        sepNavIntBoundsRect = "{{0, 0}, {530, 1163}}";
     518                        sepNavSelRange = "{3337, 0}";
     519                        sepNavVisRect = "{{0, 456}, {530, 527}}";
    518520                };
    519521        };
     
    535537                vrLen = 1440;
    536538                vrLoc = 4186;
    537         };
    538         E1737410063370F0002A81F1 = {
    539                 fRef = C6859E970290921104C91782;
    540                 isa = PBXTextBookmark;
    541                 name = "appswitch.1: 4";
    542                 rLen = 0;
    543                 rLoc = 122;
    544                 rType = 0;
    545                 vrLen = 1440;
    546                 vrLoc = 4186;
    547         };
    548         E1737411063370F0002A81F1 = {
    549                 exec = E1A0BD2C03EFAD1C00050001;
    550                 isa = PBXExecutableBookmark;
    551                 uiCtxt = {
    552                         buildSettingsExpandedSubviews = (
    553                                 0,
    554                                 1,
    555                                 2,
    556                                 3,
    557                                 4,
    558                                 5,
    559                         );
    560                         buildSettingsVisRect = "{{0, 0}, {556, 498}}";
    561                 };
    562539        };
    563540        E18A0A29063362FF008DC67C = {
     
    663640                vrLoc = 0;
    664641        };
    665         E18A0A6F06336B56008DC67C = {
    666                 fRef = 08FB7796FE84155DC02AAC07;
    667                 isa = PBXTextBookmark;
    668                 name = "main.c: 463";
    669                 rLen = 0;
    670                 rLoc = 18890;
    671                 rType = 0;
    672                 vrLen = 1696;
    673                 vrLoc = 17194;
    674         };
    675642        E1A0BD2C03EFAD1C00050001 = {
    676643                activeArgIndex = 2147483647;
     
    700667                };
    701668        };
     669        E1CC5D67065735A3001A87C9 = {
     670                fRef = 08FB7796FE84155DC02AAC07;
     671                isa = PBXTextBookmark;
     672                name = "main.c: 420";
     673                rLen = 0;
     674                rLoc = 17006;
     675                rType = 0;
     676                vrLen = 1569;
     677                vrLoc = 16415;
     678        };
     679        E1CC5D68065735A3001A87C9 = {
     680                fRef = 08FB7796FE84155DC02AAC07;
     681                isa = PBXTextBookmark;
     682                name = "main.c: 420";
     683                rLen = 0;
     684                rLoc = 17006;
     685                rType = 0;
     686                vrLen = 1569;
     687                vrLoc = 16415;
     688        };
     689        E1CC5D69065735A3001A87C9 = {
     690                fRef = E16C83CC03F7AF7B00050002;
     691                isa = PBXTextBookmark;
     692                name = "README: 97";
     693                rLen = 0;
     694                rLoc = 3337;
     695                rType = 0;
     696                vrLen = 1567;
     697                vrLoc = 1280;
     698        };
    702699}
  • trunk/appswitch/appswitch/main.c

    r156 r160  
    2424const char *APP_NAME;
    2525
    26 #define VERSION "1.0"
     26#define VERSION "1.0.1"
    2727
    2828struct {
     
    308308        int termwidth = 80;
    309309        struct winsize ws;
    310         char *banner = "       PSN   PID TYPE CREA NAME                ";
    311                      // 12345678.0 12345 1234 1234 12345678901234567890
     310        char *banner = "        PSN   PID TYPE CREA NAME               ";
     311                     // 123456789.0 12345 1234 1234 1234567890123456789
    312312        if ((ioctl(STDOUT_FILENO, TIOCGWINSZ, (char *)&ws) != -1 ||
    313313             ioctl(STDERR_FILENO, TIOCGWINSZ, (char *)&ws) != -1 ||
    314314             ioctl(STDIN_FILENO,  TIOCGWINSZ, (char *)&ws) != -1) ||
    315315            ws.ws_col != 0) termwidth = ws.ws_col;
    316         char *formatButPath = "%8ld.%ld %5ld %c%c%c%c %c%c%c%c %-20.20s";
     316        char *formatButPath = "%9ld.%ld %5ld %c%c%c%c %c%c%c%c %-19.19s";
    317317        int pathlen = termwidth - strlen(banner) - 1;
    318318        // XXX don't ever free 'format', should fix if we get called repeatedly
     
    404404}
    405405
    406 int main (int argc, char * const argv[]) {
     406int main(int argc, char * const argv[]) {
    407407    OSStatus err = noErr;
    408408
     
    416416    CPSProcessSerNum psn = matchApplication(&info);
    417417
    418     const char *verb;
     418    const char *verb = NULL;
    419419    switch (OPTS.appAction) {
    420420        case APP_NONE: break;
  • trunk/appswitch/package-appswitch.sh

    r93 r160  
    55cd appswitch && \
    66find . -name \*~ -exec rm '{}' \; && \
    7 pbxbuild && \
     7xcodebuild && \
    88SetFile -c 'R*ch' -t 'TEXT' README VERSION && \
    99strip build/appswitch && \
    1010sudo /usr/bin/install -c build/appswitch /usr/local/bin && \
    1111sudo /usr/bin/install -c appswitch.1 /usr/local/man/man1 && \
     12chmod 755 build/appswitch && \
     13chmod 644 appswitch.1 && \
    1214rm -rf build/appswitch.build build/intermediates build/.gdb_history && \
    1315VERSION=`cat VERSION` TARBALL="appswitch-$VERSION.tar.gz" && \
     
    1618rm -f appswitch-$VERSION $TARBALL $DMG && \
    1719ln -s appswitch appswitch-$VERSION && \
    18 tar --exclude=.DS_Store --exclude=.svn -zchf appswitch-$VERSION.tar.gz appswitch-$VERSION && \
     20tar --owner=root --group=wheel --exclude=.DS_Store --exclude=.svn --exclude=.gdb_history -zchf appswitch-$VERSION.tar.gz appswitch-$VERSION && \
    1921#hdiutil create $DMG -megabytes 5 -ov -type UDIF && \
    2022#DISK=`hdid $DMG | sed -ne ' /Apple_partition_scheme/ s|^/dev/\([^ ]*\).*$|\1|p'` && \
Note: See TracChangeset for help on using the changeset viewer.