ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/glimpse.spec
(Generate patch)

Comparing COMP/CMSDIST/glimpse.spec (file contents):
Revision 1.4 by elmer, Sat Sep 16 16:36:19 2006 UTC vs.
Revision 1.6 by elmer, Sun Sep 17 08:57:00 2006 UTC

# Line 18 | Line 18 | action=
18   while [ $# -gt 0 ]
19   do
20    case $1 in
21 <    -index ) [ $# -gt 1 ] || { echo "Option \`$1' requires an argument" 1>&2; exit 1;  }
22 <        action=index; shift;;
23 <
21 >    -full )
22 >        action=full; shift;;
23      -help )
24 <        echo "cmsglimpse [-H <CMSSW_TAG>] <search term>"
24 >        echo "cmsglimpse [-H <CMSSW_TAG>] [-full] [glimpse-options] <search term>"
25 >        echo ""
26 >        echo "  -H <CMSSW_TAG> - specify the CMSSW tag for the release you    "
27 >        echo "                   would like to search (e.g. 'CMSSW_1_0_0').   "
28 >        echo "                   If you do not specify the -H option it will  "
29 >        echo "                   default to the release corresponding to      "
30 >        echo "                   your current scram runtime environment.      "
31 >        echo ""
32 >        echo "  -full          - Print the full path to the source files. The "
33 >        echo "                   default is to print the relative path        "
34 >        echo "                   beginning with the CMSSW subsystem.          "
35 >        echo ""
36 >        echo "  [glimpse-options] - any of the glimpse options can also be    "
37 >        echo "                      specified, except for -H, which is used   "
38 >        echo "                      as described above. See 'glimpse --help'. "
39          exit
40          ;;
41      -H )[ $# -gt 1 ] || { echo "Option \`$1' requires an argument" 1>&2; exit 1;  }
# Line 48 | Line 61 | then
61   fi
62  
63   case $action in
64 <        index )
65 <                (cd @INSTROOT@/@CMSPLATF@/cms/cmssw/$CURRENT_SCRAM_PROJECT; \
53 <                 eval `scramv1 run -sh`;                
54 <                 glimpseindex $args -H $CURRENT_SCRAM_PROJECT @INSTROOT@/@CMSPLATF@/cms/cmssw/$CURRENT_SCRAM_PROJECT;)
64 >        full )
65 >                glimpse -H @INSTROOT@/@CMSPLATF@/$CURRENT_SCRAM_PROJECT/src/.glimpse_full/ $args
66                  ;;
67          * )
68 <                glimpse -H $CURRENT_SCRAM_PROJECT $args
68 >                glimpse -H @INSTROOT@/@CMSPLATF@/$CURRENT_SCRAM_PROJECT/src $args
69                  ;;
70   esac
71   EOF_CMS_GLIMPSE
72   perl -p -i -e "s|\@CMSPLATF\@|%cmsplatf|g" %{i}/bin/cmsglimpse
73   chmod +x %{i}/bin/cmsglimpse
74   %post
75 < perl -p -i -e "s|\@INSTROOT\@|$RPM_INSTALL_PREFIX|g" $RPM_INSTALL_PREFIX/bin/cmsglimpse
75 > perl -p -i -e "s|\@INSTROOT\@|$RPM_INSTALL_PREFIX|g" $RPM_INSTALL_PREFIX/%{pkgrel}/bin/cmsglimpse

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines