mirror of
https://github.com/sbopkg/sbopkg
synced 2024-11-12 21:10:21 +03:00
update sqg
This commit is contained in:
parent
7909639bb0
commit
885076e024
@ -120,12 +120,19 @@ parse_queuefile_requires () {
|
||||
}
|
||||
|
||||
build_queuefile () {
|
||||
QUEUEFILE=$QUEUEDIR/$PRGNAM.sqf
|
||||
OLDFILE=$QUEUEDIR/$PRGNAM.sqf
|
||||
QUEUEFILE=$QUEUEDIR/$PRGNAM.sqf.tmp
|
||||
CATFILE=$QUEUEDIR/tmp.sqf
|
||||
touch $QUEUEFILE
|
||||
echo "$PRGNAM" > $QUEUEFILE
|
||||
parse_queuefile_requires $PRGNAM
|
||||
tac $QUEUEFILE > $QUEUEDIR/tmp.sqf
|
||||
mv $QUEUEDIR/tmp.sqf $QUEUEFILE
|
||||
tac $QUEUEFILE > $CATFILE
|
||||
if cmp -s "$CATFILE" "$OLDFILE"; then
|
||||
rm $QUEUEFILE $CATFILE
|
||||
else
|
||||
mv $CATFILE $OLDFILE
|
||||
rm $QUEUEFILE
|
||||
fi
|
||||
}
|
||||
|
||||
main_loop () {
|
||||
|
Loading…
Reference in New Issue
Block a user