- Timestamp:
- 09/26/17 14:09:23 (8 years ago)
- Branches:
- gcc484, master, perl-5.22
- Children:
- b9261a1
- Parents:
- c6da4cb
- Location:
- npl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
npl/kernel/initrd/initrd.build
rc6da4cb r0c25615 1 65 491 6550 -
npl/rebuildcheck
rc6da4cb r0c25615 47 47 { 48 48 DIR=$1 49 MD5=`ls -lR "$DIR"|md5sum` 49 MD5=`ls -lR "$DIR"|md5sum` 50 50 ! grep -x "$MD5" "$DIR/.signature" &>/dev/null 51 51 } … … 81 81 if ! [ "$ignoremd5" ]; then 82 82 pushd "$DIR" >/dev/null || exit 1 83 find . -type f | 83 find . -type f | 84 84 #negeer bepaalde files 85 egrep -v $IGNORE_REGEX | 85 egrep -v $IGNORE_REGEX | 86 86 while read FILE; do 87 87 MD5=`md5sum "$FILE"` … … 91 91 exit 2 #exit 2, rebuild dus 92 92 fi 93 done 93 done 94 94 RET=$? 95 95 popd >/dev/null 96 97 if [ "$RET" == "2" ]; then 96 97 if [ "$RET" == "2" ]; then 98 98 REBUILD=1 99 elif [ "$RET" != "0" ]; then 99 elif [ "$RET" != "0" ]; then 100 100 msg "ERROR!" 101 101 exit 1 … … 127 127 128 128 129 #if we need to rebuild because of a DEPERROR, check our direct dependencys first so that we rebuild the 129 #if we need to rebuild because of a DEPERROR, check our direct dependencys first so that we rebuild the 130 130 #"deepest" stuff first. 131 131 if ! [ "$ignoredep" ] && [ "$DEPERROR" == "1" ]; then 132 132 for DEP in $DEPS; do 133 133 #zoek de buildbase op, als deze er al is 134 if BUILDBASE=`./findbuild "$DEP"` 2>/dev/null; then 134 if BUILDBASE=`./findbuild "$DEP"` 2>/dev/null; then 135 135 msg "Dependency check $DEP" 136 136 #note: niet de parameters meegeven, anders gaat hij alles rebuilden bij een force … … 169 169 if grep '#NOBUILDROOT' "$BUILDFILE" >/dev/null; then 170 170 msg "Building package without buildroot!" 171 ( 171 ( 172 172 cd `dirname $BUILDFILE` || exit 1 173 173 $BUILDFILE $* || exit 1 174 174 ) || fatal 175 175 else 176 ( 176 ( 177 177 cd ../builder 178 178 ./runrooted "$BUILDFILE" $* … … 193 193 echo 194 194 echo "################## DIFF of $PKG:" 195 ./diffpkg $PKG 195 ./diffpkg $PKG 196 196 echo "################## end of DIFF $PKG " 197 197 fi 198 198 done 199 200 msg "Updating build numbers for $BUILDFILE..." 201 pushd $DIR > /dev/null 202 for PKG in *.pkg; do 203 BUILD_FILE=`echo "$PKG"| sed 's/.pkg$//'`.build 204 BUILD=`cat $BUILD_FILE 2>/dev/null` 205 if [ "$BUILD" == "" ]; then 206 BUILD=1 207 else 208 (( BUILD=BUILD+1 )) 209 fi 210 echo $BUILD > $BUILD_FILE || exit 1 211 done 212 popd >/dev/null 213 199 214 else 200 215 msg "Not building, only updating md5 sums.." 201 216 fi 202 217 218 219 220 203 221 msg "Updating md5 for $BUILDFILE..." 204 222 #bepaal en bewaar major versies waartegen we gebuild hebben 205 223 rm $MD5FILE &>/dev/null 206 224 pushd $DIR >/dev/null 207 find . -type f| sort | 225 find . -type f| sort | 208 226 #negeer bepaalde files 209 egrep -v $IGNORE_REGEX | 227 egrep -v $IGNORE_REGEX | 210 228 while read FILE; do 211 229 md5sum "$FILE" >> $MD5FILE 212 230 done 213 231 popd > /dev/null 214 232 215 233 msg "Updating dependency information for $BUILDFILE..." 216 234 DEPVERFILE=`echo $BUILDFILE | sed 's/.SlackBuild$//g'`.depver … … 235 253 #store_dir "$DIR" 236 254 exit 0 237 238
Note: See TracChangeset
for help on using the changeset viewer.