Home | History | Annotate | Download | only in self-extractors

Lines Matching refs:SCRIPT

141   echo \ \ Generating self-extracting script
142 SCRIPT=extract-$COMPANY-$DEVICE.sh
143 cat PROLOGUE > tmp/$SCRIPT || echo \ \ \ \ Error generating script
144 cat $COMPANY/COPYRIGHT >> tmp/$SCRIPT || echo \ \ \ \ Error generating script
145 cat PART1 >> tmp/$SCRIPT || echo \ \ \ \ Error generating script
146 cat $COMPANY/LICENSE >> tmp/$SCRIPT || echo \ \ \ \ Error generating script
147 cat PART2 >> tmp/$SCRIPT || echo \ \ \ \ Error generating script
148 echo tail -n +$(expr 2 + $(cat PROLOGUE $COMPANY/COPYRIGHT PART1 $COMPANY/LICENSE PART2 PART3 | wc -l)) \$0 \| tar zxv >> tmp/$SCRIPT || echo \ \ \ \ Error generating script
149 cat PART3 >> tmp/$SCRIPT || echo \ \ \ \ Error generating script
150 (cd tmp ; tar zc --owner=root --group=root vendor/ >> $SCRIPT || echo \ \ \ \ Error generating embedded tgz)
151 chmod a+x tmp/$SCRIPT || echo \ \ \ \ Error generating script
152 ARCHIVE=$COMPANY-$DEVICE-$BUILD-$(md5sum < tmp/$SCRIPT | cut -b -8 | tr -d \\n).tgz
155 (cd tmp ; tar --owner=root --group=root -z -c -f ../$ARCHIVE $SCRIPT || echo \ \ \ \ Error archiving script)