cron-script.sh
changeset 15856 ee66ac49d3ed
parent 15813 d877cb30b7c6
child 16090 c6e58447bdfe
equal deleted inserted replaced
15855:060a7aff00c5 15856:ee66ac49d3ed
   174 
   174 
   175 cd $SPECDIR
   175 cd $SPECDIR
   176 
   176 
   177 #FIXME: The smf service could not run correctly in jail, hack the script here.
   177 #FIXME: The smf service could not run correctly in jail, hack the script here.
   178 if [ -f /THIS_IS_JAIL_* ]; then
   178 if [ -f /THIS_IS_JAIL_* ]; then
   179     pkgtool build --nonotify --with-l10n ${DEBUG_BUILD} --define "nightly 1" --with-sun-branding --define 'support_level supported' SUNWdesktop-cache.spec
   179     egrep -v '^(Requires|BuildRequires):' SUNWdesktop-cache.spec > SUNWdesktop-cache.spec.tmp.$$
       
   180     pkgtool build --nonotify --with-l10n ${DEBUG_BUILD} --define "nightly 1" --with-sun-branding --define 'support_level supported' SUNWdesktop-cache.spec.tmp.$$
       
   181     rm -f SUNWdesktop-cache.spec.tmp.$$
   180     su<<EO_SU
   182     su<<EO_SU
   181     cat<<EOF>/usr/share/desktop-cache/restart_fmri
   183     cat<<EOF>/usr/share/desktop-cache/restart_fmri
   182 #!/bin/ksh
   184 #!/bin/ksh
   183 
   185 
   184 exit 0
   186 exit 0
   219 
   221 
   220 # The number of failed pkgs is returned
   222 # The number of failed pkgs is returned
   221 FAILED_OTHER=$?
   223 FAILED_OTHER=$?
   222 # End spec-files-other build.
   224 # End spec-files-other build.
   223 
   225 
       
   226 #FIXME: Removed the hacked package SUNWdesktop-cache and build a regular one at the end
       
   227 if [ -f /THIS_IS_JAIL_* ]; then
       
   228     pkgtool uninstall-pkgs --nonotify --with-l10n SUNWdesktop-cache.spec
       
   229     pkgtool build-only --nonotify --with-l10n ${DEBUG_BUILD} --define "nightly 1" --with-sun-branding --define 'support_level supported' SUNWdesktop-cache.spec
       
   230 fi
       
   231 
   224 # rotate rpms dir
   232 # rotate rpms dir
   225 rm -rf $RPMSDIR.prev
   233 rm -rf $RPMSDIR.prev
   226 mv $RPMSDIR $RPMSDIR.prev; mkdir -p $RPMSDIR
   234 mv $RPMSDIR $RPMSDIR.prev; mkdir -p $RPMSDIR
   227 
   235 
   228 # make dist
   236 # make dist